No text in figure

8 vues (au cours des 30 derniers jours)
Friederike
Friederike le 9 Août 2012
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

Réponses (1)

Daniel Shub
Daniel Shub le 9 Août 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 commentaires
Friederike
Friederike le 9 Août 2012
Modifié(e) : Friederike le 9 Août 2012
To what should i set my preference directory?
it is now "...\MathWorks\MATLAB\R2012a"
Daniel Shub
Daniel Shub le 9 Août 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by