I want to plot this equation
w=1 ./ (pi.*Vrf.*sqrt(1 - ((V-58.5)./Vrf).^2));
for different Vrf.
Vrf=0.1:0.1:10;
V=58.6-Vrf:0.1:58.4+Vrf;
The range of V is defined by Vrf and Vrf is changed between the range that shown. I do not know How can I use for loop and calculate W for this different range?

 採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 7 月 14 日

0 投票

Vrf=0.1:0.1:10;
V = @(x)(58.6-x:.1:58.4+x)';
W=@(x)1 ./ (pi.*x.*sqrt(1 - ((V(x)-58.5)./x).^2));
x = arrayfun(V,Vrf,'un',0);
v = arrayfun(W,Vrf,'un',0);
C = [x;v];
plot(C{:})

1 件のコメント

nafisk
nafisk 2017 年 7 月 14 日
Thank you so much for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2017 年 7 月 14 日

コメント済み:

2017 年 7 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by