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

 Akzeptierte Antwort

Jan
Jan am 8 Sep. 2011

2 Stimmen

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 Kommentare

mohammad
mohammad am 8 Sep. 2011
Thanks Jon
let me check
mohammad
mohammad am 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 am 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 am 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 am 2 Feb. 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 am 2 Feb. 2012
@Keith: Please post a new question in a new thread.
You find the answer in the documetation: "docsearch private"
Josh
Josh am 23 Dez. 2014
Seems like setdefaultbutton is also missing there, to be copied from the same ibarary as these two

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 8 Sep. 2011

Kommentiert:

am 23 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by