How to permanently change font size settings?

2 次查看(过去 30 天)
set(0,'defaulttextfontsize',14);
set(0,'defaultaxesfontsize',14);
at the command prompt together create a plotting environment with font sizes that I like. What I'd like to do is permanently set these for all future matlab sessions. How would I go about doing this. Thank you for you time.

采纳的回答

Walter Roberson
Walter Roberson 2013-11-17
You can put the command in your setup.m file.

更多回答(1 个)

Max
Max 2013-11-17
searching around for where to put this I found someone who recommended putting it in a startup.m file and putting that file in the ~/Documents/MATLAB/ directory. This worked for me. Thanks for your answer though, it lead me where I wanted to go.
What is the difference between setup.m and startup.m?
  1 个评论
Walter Roberson
Walter Roberson 2013-11-17
The difference between setup.m and startup.m is whether my memory is fading or not. Apparently it is.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by