Question

I know semilogx and semilogy for 2D plots. There is any equivalent for SURF and MESH?

Was it helpful?

Solution

Have you looked at the XScale, YScale and Zscale axis properties. You can set them to either linear or log. However, to set these properties to log the data needs to be positive. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232 for more details.

OTHER TIPS

As stated in the mentioned link, to set all three axes to logarithmic scaling, use

set(gca, 'XScale', 'log', 'YScale', 'log', 'ZScale', 'log')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top