Matlab: making the grid in plot logarithmic

后端 未结 2 1534
谎友^
谎友^ 2021-01-23 16:36

I have plotted to vectors against each other, and they are already logarithmic and everything is fine with that. But now that I have my plot i want the grid to be logarithmic. I

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-23 17:23

    If you have already plotted the axes, you can execute the following on the command line:

    set(gca,'yscale','log') %# to set the y-axis to logarithmic
    set(gca,'xscale','log') %# to set the x-axis to logarithmic
    

    Have a look at axes properties to find out what else you can modify.

提交回复
热议问题