Matlab plots not working

1 Ansicht (letzte 30 Tage)
David Kim
David Kim am 5 Jun. 2023
Kommentiert: David Kim am 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);

Akzeptierte Antwort

Image Analyst
Image Analyst am 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 Kommentar
David Kim
David Kim am 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by