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

2 views (last 30 days)
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

Answers (2)

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

Dishant Arora
Dishant Arora on 10 Mar 2014
use plot3 instead of plot

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!