MATLAB Answers

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

1 view (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 24 Jan 2020
Edited: Walter Roberson on 24 Jan 2020
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 Comments

Show 2 older comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

No tags entered yet.


Translated by