MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   低级问题 请高手帮忙 (https://www.labfans.com/bbs/showthread.php?t=3972)

firezdl 2008-07-23 09:44

低级问题 请高手帮忙
 
为什么 我的function运行会出问题
比如运行 function f=factor(n)
if n<=1
f=1;
else
f=factor(n-1)*n; %递归调用求(n-1)!
end


会出现??? Input argument "r" is undefined.

Error in ==> average at 7
s=pi*r*r;


所有时间均为北京时间。现在的时间是 07:17

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