No text in figure
8 views (last 30 days)
Show older comments
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

0 Comments
Answers (1)
Daniel Shub
on 9 Aug 2012
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 Comments
Daniel Shub
on 9 Aug 2012
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.
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!