1. 程式人生 > >Matlab修改背景顏色

Matlab修改背景顏色

 

步驟:

1, 在matlab命令列中執行prefdir, 獲取matlab.prf檔案所在路徑

2, 開啟matlab.prf所在路徑, 找到matlab.prf檔案, 作備份

3, 將以下內容新增到matlab的matlab.prf檔案中

https://github.com/scheckley/matlab-monokai

Editor.VariableHighlighting.Color=C-6931898
ColorsText=C-460558
Colors_M_SystemCommands=C-448910
Editorhighlight-lines=C-11974594
Colors_M_Warnings=C-27648 Colors_M_Strings=C-1647756 Editor.NonlocalVariableHighlighting.TextColor=C-5471745 Colors_HTML_HTMLLinks=C-16732805 Colors_M_Comments=C-8355712 Colors_M_Errors=C-65536 Colors_M_UnterminatedStrings=C-5111808 ColorsBackground=C-14211038 Colors_M_Keywords=C-10036753 Color_CmdWinWarnings
=C-39936 ColorsMLintAutoFixBackground=C-7973573 Colors_M_Keywords=C-10036753 Editorhighlight-lines=C-13553108 Editorhighlight-caret-row-boolean-color=C-2167080 ColorsUseSystem=Bfalse

重啟MATLAB即可。

 

附:

備份pri檔案

#MATLAB Preferences
#Tue Dec 11 10:49:08 CST 2018
ReplaceSearchText19
=Sdw ReplaceSearchText18=S\u00A0 ReplaceSearchText17=ShFig ReplaceSearchText16=Sii ReplaceSearchText15=Sdouble ReplaceSearchText14=Scharslice ReplaceSearchText13=Swide ReplaceSearchText12=Sfigure ReplaceSearchText11=ScharacterImage(:,:,i) ReplaceSearchText10=S11 ReplaceSearchText=Sxz EditorNamedBufferOption=I2 DataStatistics.XLocation=I20 LimitSearchToSelection=Bfalse ReplaceWordWrap=Btrue ReplaceText20=S RLWidthB2_VE_2014b_1_1=I130 RLWidthB2_VE_2014b_1_0=I130 RLWidthB2_WB_2014b_1_1=I130 RLWidthB2_WB_2014b_1_0=I130 CommandWindowClearConfirmation=Btrue PathBrowserBounds=R509 420 1000 600 RLHiddenB2_VE_2014b_1=I8184 RLPrevInitB2_VE_2014b_1=Btrue mlint-configurations-list=SC:\\Users\\pp\\AppData\\Roaming\\MathWorks\\MATLAB\\R2016a\\MLintDefaultSettings.txt ReplaceText19=S ReplaceText18=S ReplaceText17=S ReplaceText16=S ReplaceText15=S ReplaceText14=S RLHiddenB2_WB_2014b_1=I16376 ReplaceText13=S ReplaceText12=S ReplaceText11=S ReplaceText10=S ReplaceMatchCase=Btrue MatlabExitConfirm=Bfalse DocumentsDetailViewerSize=I302 CommandWindowShowStartupMessage=Bfalse RLOrderB2_VE_2014b_1=S0:1: RLPrevInitB2_WB_2014b_1=Btrue ReplaceWholeWord=Bfalse ReplaceText9=S ReplaceSearchText9=Scp ReplaceText8=S ReplaceSearchText8=Smatch ReplaceText7=S ReplaceSearchText7=S32768 ReplaceText6=S ReplaceSearchText6=S32767 ReplaceText5=S RLOrderB2_WB_2014b_1=S0:1: DataStatistics.YLocation=I40 ReplaceSearchText5=Sr2br_r2dit_trig_impl ReplaceText4=S ReplaceText3=S ReplaceSearchText4=SemxEnsureCapacity ReplaceText2=Stempbw ReplaceSearchText3=SB ReplaceSearchText2=S\u00A0\u00A0 DocumentsDetailViewerRatio=J4633542436565071403 DocumentsDetailViewerCollapsed=Bfalse ReplaceText=S EditorMRU8=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\psdNew.m EditorMRU7=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\test.m EditorMRU6=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\wifi_yk_tc3.m EditorMRU5=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\fft32.m EditorMRU4=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testData.m EditorMRU3=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u53C2\u6570\u8BBE\u7F6E.txt EditorMRU2=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\\u4EFF\u771F\\fangan1.m EditorMRU1=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\\u4EFF\u771F\\fangan3.m RLPrevInitB2_null=Btrue ReplaceSearchText20=Simagebw
View Code