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

 Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

JP
on 6 Feb 2022

Edited:

on 6 Feb 2022

Community Treasure Hunt

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

Start Hunting!