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

 Respuesta aceptada

Jan
Jan el 8 de Sept. de 2011

2 votos

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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Sept. de 2011

Comentada:

el 23 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by