this is logical, since MATLAB is not aware of the original index anymore). To get you started on the Solarized color scheme that I like, use: .setBooleanPref('ColorsUseSystem',0) Ĭom.('ColorsBackground',(7/255,54/255,66/255)) Ĭom.('ColorsText',(133/255,153/255,0/255)) Ĭom.('Colors_M_Comments',(181/255,137/255,0/255)) Ĭom.('Colors_M_Keywords',(38/255,139/255,210/255)) Ĭom.('Colors_M_Strings',java.awt. Unfortunately, if I display a true color image the data tip does not reveal the index in the original matrix for each color anymore and instead it just displays the RGB vector (i.e. One can specify colors using a vector that gives the RGB triple where in MATLAB, each of the three values are numbers from 0 to 1. To change the colors via the terminal, you can use commands outlined in another cool MATLAB blog. A great thing about this theme is when switching from Dark to Light backgrounds, you don't need to change any of the other colors: They're designed to look good on both backgrounds. One of those, 'lines,' is a repeating array of seven distinct colors. It offers a warm look that looks great with dark or light backgrounds. MATLAB ships with several built-in colormaps that are useful in different situations. A great scheme is called "Solarized" which you can set MATLAB to match.
![matlab colors matlab colors](https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/48155/versions/20/previews/html/colornames_doc_01.png)
Just head to "Matlab-> Preferences" and select the colors menu to get started! I prefer a green text on a dark background, but even a sepia background will be easier on the eyes than Bright White. Our eyes never evolved to stare at a bright white light all day, and research shows that looking at bright light before going to bed is bad for sleep.
![matlab colors matlab colors](https://au.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/42673/versions/6/screenshot.png)
If you stare at MATLAB for long hours, espically late at night, then changing your color scheme is a quick an easy way to reduce eye strain (and maybe help you sleep better). Hey Matlab users, here's a quick tip that I hope is helpful.