作者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