No text in figure

조회 수: 3 (최근 30일)
Friederike
Friederike 2012년 8월 9일
Hey!
I have a problem here... Today I wanted to create a plot, like always. But, I don't know how it happenend, there is no text on the axes and even title('Title1') it has no effect on the figure. the code generating the figure below is:
x=linspace(1,10,1000);
y=x.^2;
plot(x,y)
title('Title1')
and there is neiter the 1to 100 scale on the xaxis nor the scale on the y axis nor the title...(Usually the scales appeared by default!) I think I have changed something in the defaults ( not intentionally...) and now want to have the defaults back... (I tried it with 2007 and 2012, both the same...)
Or is there a way to reset all settings of matlab???
What could I do???
Greets,
Friederike

답변 (1개)

Daniel Shub
Daniel Shub 2012년 8월 9일
To set MATLAB back to the default you can delete your preference directory. You can find the preference directory with prefdir.
Since you see the problem in both R2007x and R2012x, preferences are not likely the problem. Did you update your graphics card or java environment recently? Have you tried rebooting your machine?
  댓글 수: 4
Friederike
Friederike 2012년 8월 9일
편집: Friederike 2012년 8월 9일
To what should i set my preference directory?
it is now "...\MathWorks\MATLAB\R2012a"
Daniel Shub
Daniel Shub 2012년 8월 9일
Quit MATLAB, rename .\MathWorks\MATLAB\R2012a to .\MathWorks\MATLAB\R2012a_bak and then start MATLAB. This will automatically create a new .\MathWorks\MATLAB\R2012a folder. If this doesn't fix your problems, then delete the new .\MathWorks\MATLAB\R2012a and rename .\MathWorks\MATLAB\R2012a_bak to .\MathWorks\MATLAB\R2012a.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by