MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   求助:inputdlg函数的使用问题 (https://www.labfans.com/bbs/showthread.php?t=5963)

temp 2008-12-21 10:15

求助:inputdlg函数的使用问题
 
我用MATLAB7.0自带的inputdlg函数,总是报错:
prompt={'Enter the matrix size for x^2:','Enter the colormap name:'};
name='Input for Peaks function';
numlines=1;
defaultanswer={'20','hsv'};

answer=inputdlg(prompt,name,numlines,defaultanswer);
??? Error using ==> isvarname
Attempt to execute SCRIPT namelengthmax as a function.

Error in ==> guihandles>createHandles at 96
if ~isempty(tag) & isvarname(tag) % can it be used as a fieldname?

Error in ==> guihandles at 75
handles = createHandles(fig);

Error in ==> inputdlg at 303
handles = guihandles(InputFig);

xiezhh 2008-12-21 14:23

回复: 求助:inputdlg函数的使用问题
 
我在2008a里测试正常,没有错误。


所有时间均为北京时间。现在的时间是 11:21

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.