From: Kyle on
Hey all,

I am using meshc to plot a function z=f(x,y). Can someone tell me how to make the z axis a log scale?
From: us on
"Kyle " <kbrig035(a)uottawa.ca> wrote in message <i0avh1$rl$1(a)fred.mathworks.com>...
> Hey all,
>
> I am using meshc to plot a function z=f(x,y). Can someone tell me how to make the z axis a log scale?

one of the solutions

[x,y,z]=peaks(32);
z=z-min(z(:));
meshc(x,y,z);
set(gca,'zscale','log');

us
From: Kyle on
"us " <us(a)neurol.unizh.ch> wrote in message <i0b02b$5jr$1(a)fred.mathworks.com>...
> "Kyle " <kbrig035(a)uottawa.ca> wrote in message <i0avh1$rl$1(a)fred.mathworks.com>...
> > Hey all,
> >
> > I am using meshc to plot a function z=f(x,y). Can someone tell me how to make the z axis a log scale?
>
> one of the solutions
>
> [x,y,z]=peaks(32);
> z=z-min(z(:));
> meshc(x,y,z);
> set(gca,'zscale','log');
>
> us



Perfect, thanks very much :)