Matlab appears during execution, does not support the execution of the script ***** (axis) as a function, how to solve

      For example, when running the following code for drawing.

x = 0:.025:pi/2;
plot(x,tan(x),'-ro')
axis([0 pi/2 0 5])

 It will not run to the axis () step, only to the plot () step. The following result appears

 

 It can be found that the coordinate axis has not changed. It will also report an error:

Solution

 You can check whether there is an m file with the same name as the function axis() in your MATLAB folder, and if so, just rename it.

In this way, the operation will not report an error, and the coordinates have changed.

 

 

Guess you like

Origin blog.csdn.net/m0_73982095/article/details/130563252