Change matlab theme

  Xiaoyu still prefers a black-style programming interface, including PYcharm and VScode, which have built-in themes or backgrounds of various styles. Today, let ’s discuss how to change the theme and style grid in matlab

  In fact, the matlab <preset> <color> can also be used to modify the color style of the matlab interface, but in the actual operation process, it is not as expected, because it requires a very cumbersome color matching to make the code clear. Come out, because we know the principle of the three primary colors, the superposition of different colors will form a new color. You can refer to the following

 

 

  Today I will share a simple and direct method to modify the background directly by modifying the prefdir file in matlab, and it is a color combination that has been set by the great gods in the related fields. Follow me.

1. First open matlab, enter "prefdir" in the "command line" window to get the location of the prefdir file

 

 

2. Change the environment where matlab is located to C: \ Users \ 6 \ AppData \ Roaming \ MathWorks \ MATLAB \ R2016b, find the matlab.prf file in this folder and double click to open

 

 

3. Copy the following code into the file

 

# monokai - MATLAB color scheme
# Generated with schemer_export v1.3.5, on MATLAB 8.1.0.604 (R2013a)
# Mon Apr 25 15:03:32 BST 2016
# To enable this color scheme in MATLAB use schemer_import, available at:
#     https://github.com/scottclowe/matlab-schemer
#     https://www.mathworks.com/matlabcentral/fileexchange/53862-matlab-schemer
ColorsUseSystem=Bfalse
ColorsUseMLintAutoFixBackground=Btrue
Editor.VariableHighlighting.Automatic=Btrue
Editor.NonlocalVariableHighlighting=Btrue
EditorCodepadHighVisible=Btrue
EditorCodeBlockDividers=Btrue
Editorhighlight-caret-row-boolean=Bfalse
EditorRightTextLineVisible=Btrue
EditorRightTextLimitLineWidth=I1
ColorsText=C-460560
ColorsBackground=C-14211038
Colors_M_Keywords=C-448910
Colors_M_Comments=C-9080482
Colors_M_Strings=C-1647756
Colors_M_UnterminatedStrings=C-65536
Colors_M_SystemCommands=C-16711936
Colors_M_Errors=C-65536
Colors_HTML_HTMLLinks=C-16711681
Colors_M_Warnings=C-27648
ColorsMLintAutoFixBackground=C-11974594
Editor.VariableHighlighting.Color=C-10066330
Editor.NonlocalVariableHighlighting.TextColor=C-16729641
Editorhighlight-lines=C-13421773
Editorhighlight-caret-row-boolean-color=C-10066330
EditorRightTextLimitLineColor=C-3355444
Color_CmdWinWarnings=C-26368

 

 

4. Close the interface and reopen

 

 

 

  This time I introduce monokai, and there are other styles of background. For its prf code, please refer to  https://github.com/scottclowe/matlab-schemer/tree/master/schemes  .

Guess you like

Origin www.cnblogs.com/-wawcc/p/12737105.html