I am using MATLAB 2019a (the latest MATLAB version my network administration allows) and I have been unable to change the font size for the input boxes for inputdlg. How can I do this?
Some things I have tried:
opts.Interpreter = 'tex';
dlgtitle = 'Simulation Inputs';
prompt = {'\fontsize{12} Input #0:', ...
'Input #1:','Input #2','Input #3', ...
'\fontsize{12} Input #4:', ...
'Input #5:','Input #6:'};
fieldsize = [2 45; 1 45; 1 45; 1 45; 1 45; 1 45; 1 45];
definput = {'\fontsize{12} 0.3', ...
answer = inputdlg(prompt,dlgtitle,fieldsize,definput,opts);
This code produces the input dialog box with the 'prompt' values with the font size specified. However, the definput values are not. I just get the text '\fontsize{12} Input #0:' and '\fontsize{12} 0.3' without any change in the font size.
I got the '\fontsize' code from:
https://www.mathworks.com/help/matlab/ref/inputdlg.html
BTW, I found the instructions for the dialog box settings to be cryptic and they have nowhere near enough examples to show what they mean, especially since the syntax has to be perfect for the commands to work.
I also notice that the command:
set(0, 'DefaultUICOntrolFontSize', 12);
works just fine for listdlg for making the fonts larger, but has no effect on inputdlg. That is just irritating.
I did look at this answer that implies that the fontsize in the input boxes can be changed, but the answer was unhelpful and more about the box size: