Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Semilog 3d - Surf with log x

195 views
Skip to first unread message

Peter

unread,
Sep 15, 2010, 10:24:04 PM9/15/10
to
I'm using surf to do a 3d plot and I want one axis to be logarithmic.
In 2d plots its semilogx..

For surf?
At the moment I plot then select the graph, then use the command window around the plot to change the axis properties to log.
There must be a command but I can't find it.

Appreciate any help, thanks.

Ross W

unread,
Sep 15, 2010, 10:30:15 PM9/15/10
to
"Peter " <pgil...@gmail.com> wrote in message <i6rv44$h31$1...@fred.mathworks.com>...

set(gca,'xscale','log')

see here for more properties of axes http://www.mathworks.com/help/techdoc/ref/axes_props.html

Ross

Peter

unread,
Sep 15, 2010, 10:40:10 PM9/15/10
to
Ross, thanks for your quick help - which worked of course.
Having to change it manually every time was driving me bananas.
0 new messages