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

 Risposta accettata

w=[1,2,3];
Mag = 1./sqrt(1+(1./(w.^2.*(10))))
Mag = 1×3
0.9535 0.9877 0.9945
plot (w,Mag)

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Tag

Richiesto:

JP
il 6 Feb 2022

Modificato:

il 6 Feb 2022

Community Treasure Hunt

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

Start Hunting!

Translated by