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

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by