Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Logarithmic axes on 3d plots

Subject: Logarithmic axes on 3d plots

From: Gavrilo Bozovic

Date: 6 Feb, 2008 12:27:12

Message: 1 of 3

Hi!

My question is: is it possible to draw 3D plots, such as
surface plots or contour plots with one, or several,
logarithmic axes?

I know of no option to do this, as in 2D specific functions
are used (semilogx, ...).

Thanks in advance for your help!

Subject: Logarithmic axes on 3d plots

From: Titus

Date: 6 Feb, 2008 12:49:22

Message: 2 of 3


"Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> schrieb im Newsbeitrag
news:foc930$eeo$1@fred.mathworks.com...
> Hi!
>
> My question is: is it possible to draw 3D plots, such as
> surface plots or contour plots with one, or several,
> logarithmic axes?
>
> I know of no option to do this, as in 2D specific functions
> are used (semilogx, ...).
>
> Thanks in advance for your help!

Hi,
after plotting your function set the property of the z axes:
set(gca, 'zscale', 'log')

Titus

Subject: Logarithmic axes on 3d plots

From: Gavrilo Bozovic

Date: 6 Feb, 2008 13:06:12

Message: 3 of 3

"Titus" <titus.edelhofer@mathworks.de> wrote in message
<focacj$31v$1@fred.mathworks.com>...
>
> "Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> schrieb im
Newsbeitrag
> news:foc930$eeo$1@fred.mathworks.com...
> > Hi!
> >
> > My question is: is it possible to draw 3D plots, such as
> > surface plots or contour plots with one, or several,
> > logarithmic axes?
> >
> > I know of no option to do this, as in 2D specific functions
> > are used (semilogx, ...).
> >
> > Thanks in advance for your help!
>
> Hi,
> after plotting your function set the property of the z axes:
> set(gca, 'zscale', 'log')
>
> Titus
>
>

yep, it works!

thanks a lot!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us