MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求助:input type undefine (https://www.labfans.com/bbs/showthread.php?t=11709)

lycrious 2010-06-06 10:22

求助:input type undefine
 
function y = convert(moles,type,extradata)
if strcmp(type,'mass') == 1
y = extradata*moles;
elseif strcmp(type,'volume_gas') == 1
y = moles*24.71;
elseif strcmp(type,'concentration') == 1
y = moles/extradata;
end
return

这是一道题目的准确答案
但是当我运行时总是说 input type undefine
这是怎么回事
还有那个strcmp和return是个什么东西
作用和格式是什么


所有时间均为北京时间。现在的时间是 14:40

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