change font size and window size

When i use of under command, 1 window coming up that its needed changing font size and window size:
answer = inputdlg({'Hello'},'Input',3,{'444'});

 Accepted Answer

Jan
Jan on 8 Sep 2011
INPUTDLG does not allow to change the figure and font size. But you can copy the source and insert the wanted changes. Just type "edit inputdlg", save it in a user-defined folder (not inside Matlab's toolbox path!) and modify it.

7 Comments

Thanks Jon
let me check
when i saved in a new folder it doesnt work and when i saved in matlab pathh gives this error:
??? Undefined function or method 'getnicedialoglocation' for input arguments of type 'double'.
Error in ==> inputdlg at 287
set(InputFig,'Position',getnicedialoglocation(FigPos,get(InputFig,'Units')));
OK i changed resize='off' with 'on' and for font changed to 12 and its solved now. but i apply this changing in main function because copy of that doesnt work
It does work. You only need the function getnicedialoglocation in addition, e.g. as a copy in your new file. The function is found in the subfolder "/private" of the original function.
Why is that function accessible to the Mathworks version but not to the new version? Where can I read in the documentation about this /private folder?
@Keith: Please post a new question in a new thread.
You find the answer in the documetation: "docsearch private"
Seems like setdefaultbutton is also missing there, to be copied from the same ibarary as these two

Sign in to comment.

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Asked:

on 8 Sep 2011

Commented:

on 23 Dec 2014

Community Treasure Hunt

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

Start Hunting!