Vector Equation with scalars?

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)) .

 Respuesta aceptada

Amit
Amit el 3 de Feb. de 2014

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Ian
el 3 de Feb. de 2014

Respondida:

el 3 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by