MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求教高手请教 关于积分的输出 变量在积分上限 谢谢 (https://www.labfans.com/bbs/showthread.php?t=8524)

geraint12 2009-05-21 21:42

求教高手请教 关于积分的输出 变量在积分上限 谢谢
 
m=10:40;
x1=35+10*log(200000);
y1=exp((1/3)*log(100*m/(0.00003-100*x1)));
x=y1+100;
n=(30-30*log(x)+40)/6;
syms n x
z=int(1-(1/15)*exp(-(n.^2/72)),0,x);
axis([10,40,0,1]);
plot(m,z,'r')



输出有问题
??? Error using ==> plot
Conversion to double from sym is not possible.
求教高手帮忙解答 谢谢

TTT_IOU 2009-05-22 00:06

回复: 求教高手请教 关于积分的输出 变量在积分上限 谢谢
 
不太明白你的意思,不过我自己调试了一下程序:
m=10:40;
x1=35+10*log(200000);
y1=exp((1/3)*log(100*m/(0.00003-100*x1)));
k=y1+100;
x=k;
n=(30-30*log(x)+40)/6;
t=1-(1/15)*exp(-(n.^2/72));
syms x
z1=int(t,0,x);
z2=subs(z1,'x',1);
z=z2.*k;
plot(m,z,'r')
axis([10,40,99,99.3])
不知是否是你要的结果,望有帮助!!!


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

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