how to plot array ? i am using display instruction but i m not able to plot that data on xy plane

1 回表示 (過去 30 日間)
disp(' L W pf_n L_W ');
for pf_n=0.35:0.05:0.5
for ac=10000.0:10000.0:50000.0
C =[(1.11*Bavg*ac*Kw*pf_n)];
vs=vr/(1-s);
%[formula: L*W=Q/(C*vs) & L/W=P]
%[let J=L*W, K=L/W]
L_W=Q/(C*vs);
W=sqrt(L_W/P);
L=P*W;
display([L',W',pf_n',L_W'])
end
end
  2 件のコメント
Bhaskar R
Bhaskar R 2020 年 1 月 24 日
Can you specify what are input values and which variables you need to plot?
Arif Sayyad
Arif Sayyad 2020 年 1 月 24 日
i want to plot (L_W,ac)
plot(L_W,pf_n) ;

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 1 月 24 日
編集済み: Walter Roberson 2020 年 1 月 24 日
pf_n = 0.35:0.05:0.5;
ac = (10000.0:10000.0:50000.0).';
C = (1.11 .* Bavg .* ac .* Kw .* pf_n);
vs = vr./(1-s);
L_W = Q./(C.*vs);
W = sqrt(L_W./P);
L = P .* W;
surf(pf_n, ac, L, 'edgecolor', 'none');
You might need
surf(ac, pf_n, L, 'edgecolor', 'none');
This code requires R2016b or later.
  5 件のコメント
Walter Roberson
Walter Roberson 2020 年 1 月 24 日
I need your full code, initializing all of the variables.
Arif Sayyad
Arif Sayyad 2020 年 1 月 24 日
i got the plot sir.... thank you so much... :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by