Matlab plots not working

1 次查看(过去 30 天)
I'm using 2021b. My matlab plot functions are not working for some reason. Figure works fine.
figure;
axis;
I get an error code like this:
plot(1:10);

采纳的回答

Image Analyst
Image Analyst 2023-6-5
You probably redefined the built-in function "axis" with your own m-file, function, or variable. Don't do that. rename your m-file, variable or function you defined so that it does not have the same name. What does this show in the command window:
which -all axis
  1 个评论
David Kim
David Kim 2023-6-5
Ah! I see now. It was not the axis function, but upon doing which -all on the get function, I found a different one that I excluded. Thank you

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by