Matlab plots not working

1 view (last 30 days)
David Kim
David Kim on 5 Jun 2023
Commented: David Kim on 5 Jun 2023
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);

Accepted Answer

Image Analyst
Image Analyst on 5 Jun 2023
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 Comment
David Kim
David Kim on 5 Jun 2023
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

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!