MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] 要求b从0到x的积分,怎么出错了 (https://www.labfans.com/bbs/showthread.php?t=17904)

ysuyeyazj 2012-11-25 22:41

要求b从0到x的积分,怎么出错了
 
x=0:0.01:4;Rn=2;Rs=10;
w=2*sqrt(Rn^2-(Rn-x).^2);
H=sqrt(Rs^2-(w/2).^2); b=2*atan(w/H/2);
ans=int(b,0,x)
[B]??? Undefined function or method 'int' for input arguments of type 'double'.[/B]
要求b从0到x的积分,怎么出错了

xiongchaohua1030 2012-11-26 10:58

回复: 要求b从0到x的积分,怎么出错了
 
你那个 int的使用格式不对吧;
int(f,'t',a,b) (当a b 为一个数时)
int(f,'t','m','n') (m和n为符号对象)

ysuyeyazj 2012-11-26 14:19

回复: 要求b从0到x的积分,怎么出错了
 
按你说的还是不对...


所有时间均为北京时间。现在的时间是 06:31

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