error message coming like string argument is an unknown option?how to plot a 3 D graph?

조회 수: 1 (최근 30일)
r=5 d=[1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 80 90] P1=10^9 w1=4.55 w2=5.13 h=d; w=d;
d0=0.4 B1=(d./d0).^(1./3) A1=400*10^-18 s=d./r; A1=d.^2
E0=8.85*10^-12 b=6.830890 E1=b.*w1.^1.5 E1g=b.*w2.^1.5
E2=E1./B1 E2g=E1g./B1 x=0.5.*E0.*E2.^2.*10^18 xg=0.5.*E0.*E2g.^2.*10^18 A2=A1.*(x./P1) A2g=A1.*(xg./P1)
v1=d.*A1 v2=d.*A2 v2g=d.*A2g v=v1+v2 vg=v1+v2g u=x.*(v1./v) ug=xg.*(v1./vg) plot(v,u,E2,'green') hold plot(v,ug,E2g,'red') hold

답변 (2개)

Mischa Kim
Mischa Kim 2014년 3월 10일
편집: Mischa Kim 2014년 3월 10일
An, use plot3 for 3D graphs:
plot3(v,u,E2,'green')
hold on
plot3(v,ug,E2g,'red')
box; grid;

Dishant Arora
Dishant Arora 2014년 3월 10일
use plot3 instead of plot

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by