MATLAB Colors Preferences changes not working

I tried changing the colors of MATLAB to get a black background to code for but for whatever reason the comments stopped being green (even though they're marked as green in my preferences). I've since hit restore default colors and use system colors, hit okay and apply about a hundred times, and yet all my syntax colors still come out as plain black (including the comments). How can I go about fixing this?

Respuestas (1)

Jan
Jan el 26 de Sept. de 2017
Editada: Jan el 26 de Sept. de 2017
The colors are stored in the file matlab.prf in the folder
prefdir
Either revert it using the FileVersionHistory, Recent versions, or however you backup your files. Or search e.g. for "Colors_M_Error", which is the line to define the error color. I assume the other colors have equivalent names. Remove these lines. (Of course after creating a backup of this file!)
Or close Matlab and delete the file (did I mention to create a backup before?). Matlab should re-create it automatically at the next start.
This suggestion is based on the idea, that your matlab.prf got corrupted. But perhaps there is another reason for the problem. According to your description the preferences are not reflected correctly in the real output to the screen. Did you restart Matlab after the changes? Which OS and Matlab version do you run?

Categorías

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

Preguntada:

el 26 de Sept. de 2017

Editada:

Jan
el 26 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by