作者hsuanboy (压力)
看板MATLAB
标题[讨论] 积分程式跑出来有些问题
时间Thu Mar 21 18:08:55 2013
clear all
format long
syms x a b thx
f=-0.0003*x^2+0.0001*x+1.989;
area=int(f,0,pi/2);
integralf=@(a,b) int(f,x,a,b);
th=zeros(10);
for i=1:9
th(i+1)=double(vpa(solve(integralf(th(i),thx)-area*1/10)));
end
以上是我的程式
显示错误讯息是
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
希望有好心大大能帮我解决一下
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 120.126.11.120