plot x=y=z
plot x=y=z
(OP)
I am a beginner in Matlab and I'm trying to plot 3 planes, defined by x=y=z using ezsurf.
z=x and z=y are easy, but I cannot find a way to plot the 3th plane x=y.
Thanking in advance...
%x=y=z
func1=@(x,y)x;
func2=@(x,y)y;
%??func3=@(x,z)y;
ezsurf(func1, [-1 1 -1 1]);
hold on
ezsurf(func2, [-1 1 -1 1]);
%??ezsurf(func3, [-1 1 -1 1]);
z=x and z=y are easy, but I cannot find a way to plot the 3th plane x=y.
Thanking in advance...
%x=y=z
func1=@(x,y)x;
func2=@(x,y)y;
%??func3=@(x,z)y;
ezsurf(func1, [-1 1 -1 1]);
hold on
ezsurf(func2, [-1 1 -1 1]);
%??ezsurf(func3, [-1 1 -1 1]);





RE: plot x=y=z
HTH
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: plot x=y=z
RE: plot x=y=z
Anyway, enough pedantic point scoring.
ezsurf(fun) plots z=fun(x,y), so you can't use it to plot an implicit function of z. To plot implicitly, use the parametric form. The parametric form of x=y is {x=s; y=s; z=t}.
>> x = @(s,t) s;
>> y = @(s,t) s;
>> z = @(s,t) t;
>> ezsurf(x, y, z)
I've never used ezsurf before, so I had to google it. Seems to give you what you want when I try it.