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

 採用された回答

Matt J
Matt J 2022 年 2 月 6 日
編集済み: Matt J 2022 年 2 月 6 日
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 についてさらに検索

タグ

質問済み:

JP
2022 年 2 月 6 日

編集済み:

2022 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by