No text in figure

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

Respuestas (1)

Daniel Shub
Daniel Shub el 9 de Ag. de 2012

0 votos

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 comentarios

Friederike
Friederike el 9 de Ag. de 2012
I rebooted the machine already. Did not solve the problem.
I recently had java errors dealing with huge matrices. Can I reset java?
Daniel Shub
Daniel Shub el 9 de Ag. de 2012
You can move/rename your preference directory and see if that fixes it. If not you can easily undo the changes.
Friederike
Friederike el 9 de Ag. de 2012
Editada: Friederike el 9 de Ag. de 2012
To what should i set my preference directory?
it is now "...\MathWorks\MATLAB\R2012a"
Daniel Shub
Daniel Shub el 9 de Ag. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Ag. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by