Calculating multiple function variables and storing in a matrix

In the following function, I was wondering how I can calculate multiple input values of w, and then plot the Mag function against those w values.
Mag = 1/sqrt(1+(1/(w.^2.*(10))));

 Respuesta aceptada

Matt J
Matt J el 6 de Feb. de 2022
Editada: Matt J el 6 de Feb. de 2022
w=[1,2,3];
Mag = 1./sqrt(1+(1./(w.^2.*(10))))
Mag = 1×3
0.9535 0.9877 0.9945
plot (w,Mag)

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

JP
el 6 de Feb. de 2022

Editada:

el 6 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by