[討論] 積分程式跑出來有些問題

看板MATLAB作者 (壓力)時間13年前 (2013/03/21 18:08), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1HIjmvDm (MATLAB)
文章代碼(AID): #1HIjmvDm (MATLAB)