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'});

 Réponse acceptée

Jan
Jan le 8 Sep 2011

2 votes

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 commentaires

mohammad
mohammad le 8 Sep 2011
Thanks Jon
let me check
mohammad
mohammad le 8 Sep 2011
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')));
mohammad
mohammad le 8 Sep 2011
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
Jan
Jan le 8 Sep 2011
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.
Keith Rogers
Keith Rogers le 2 Fév 2012
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?
Jan
Jan le 2 Fév 2012
@Keith: Please post a new question in a new thread.
You find the answer in the documetation: "docsearch private"
Josh
Josh le 23 Déc 2014
Seems like setdefaultbutton is also missing there, to be copied from the same ibarary as these two

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by