Matlab plots not working

조회 수: 1 (최근 30일)
David Kim
David Kim 2023년 6월 5일
댓글: David Kim 2023년 6월 5일
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