MATLAB Answers

How to increase font size in the System Identification app window on Mac OS X?

6 views (last 30 days)
Bill Tubbs
Bill Tubbs on 20 Jan 2020
Edited: Bill Tubbs on 29 Jun 2020
I've just started using the System Identification app for a course I am taking. I have an Apple Mac Mini with a 27" Thunderbolt display. When I open the System Identification app it appears very small on the display and the fonts are so small they are straining my eyes.
Screen Shot 2020-01-19 at 16.43.51.png
I know how to increase the font size in the main MATLAB_R2019b application (in MATLAB > Preferences) but it doesn't change the font in the System Identification app. I see Simulink preferences but no font setting there.
Couldn't find anything about fonts in the System Identification App help pages (although there is no search function).
System details
Mac Mini, 2012, OS X Mojave 10.14.6
Apple Thunderbolt Display, 27-inch, (2560×1440 pixels)
MATLAB: R2019b Update 2
System Identification Toolbox 9.11
  2 Comments
Bill Tubbs
Bill Tubbs on 31 Jan 2020
Thanks Andrew. I suspect you are right. Displays have become more and more high definition over the years and maybe this toolbox has not been upgraded to account for that (b.t.w. note that the Thunderbolt Display was released in 2011 and its 'only' 2560×1440 pixels - not even retina technology!).
The odd thing is you can re-size the window, it's just that the font size doesn't increase when you do.

Sign in to comment.

Accepted Answer

Bill Tubbs
Bill Tubbs on 3 Feb 2020
Edited: Bill Tubbs on 29 Jun 2020
I raised a support request and got this response:
I am writing in reference to your Technical Support Case #03998547 regarding 'Fonts in System Identification Toolbox app window too small'.
I understand that you are having difficulty with font sizes in the System Identification Toolbox app window. I am sorry for any inconvenience this has caused.
If you follow this link: https://www.mathworks.com/help/ident/ug/working-with-the-system-identification-tool-gui.html at the bottom of the page under "Modifying idlayout.m" it will note that by customizing this m file you can change the font size.
Being a little more specific so you do not have to hunt through all the code, Line 170 (in R2019b) of the "idlayout.m" file begins the section controlling font size. Changing the value of "scp" will allow you to increase or decrease the font size in the app.
For example if you add "scp = scp / 2;" to the line below "scp=get(0,'screenp');" you will double the font size in the app.
If you would, could you please run "idlayout('fonts',100) in the MATLAB command prompt and tell me the output? Layouts appear to be written such that they query the computer for its pixel density rather than absolute number of pixels in setting the desired font size so I am surprised that you are having issues with your display and I would like to look into it further.
You should also be able to use "idlayout.m" to increase the System Identification App window size for when it opens as well so you do not have to manually resize on each use.
I hope this helps and please let me know if I can help further.
Please preserve the Reference ID in further correspondence on this query. This allows our systems to automatically associate your reply to the appropriate Case.
If you have a new technical support question, please submit a new request here:
Sincerely,
MathWorks Technical Support Department
As decribed above, I made a copy of the file idlayout.m which I found here:
/Applications/MATLAB_R2019b.app/toolbox/ident/idguis/idlayout.m
And put the copy here:
/Applications/MATLAB_R2019b.app/toolbox/idlayout.m
making sure to add this to the MATLAB path (easiest way is to just try running it).
Then I added the following line
scp = scp*3/4
to the script in the following location:
scp=get(0,'screenp');
scp = scp*3/4; % Larger font size
sz1=ceil(12*72/scp);sz2=ceil(10*72/scp);
% if scp>100,sz1=10;sz2=8;else sz1=12;sz2=10;end
if number==100
map=sz1; % Font size for the BEST FIT table in the model output view
elseif number==50
map=sz2; % Font size for the icon texts in the main IDENT window
else
map{1}=sz1; % Font size for Titles and Labels on plots
map{2}='normal'; % Font weight for the same
end
Note, I also changed the value for the 'Font size for the BEST FIT table' to map=sz2.
This seemed to produce about the right font size I was looking for:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!