Vector Equation with scalars?

1 Ansicht (letzte 30 Tage)
Ian
Ian am 3 Feb. 2014
Beantwortet: Amit am 3 Feb. 2014
Define a and b as scalars a = 3 and b = 4, and x as the vector x = −3,−2.8,−2.6,··· ,1.6,1.8,2. Then use these variables to calculate y by y = 8((a^2)/(x^2 + b^2)) .

Akzeptierte Antwort

Amit
Amit am 3 Feb. 2014
a = 3;
b = 4;
x = -3:0.2:2;
y = 8*(a^2)./(x.^2+b^2);

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by