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

 채택된 답변

Jan
Jan 2011년 9월 8일

2 개 추천

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

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2011년 9월 8일

댓글:

2014년 12월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by