Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のforループを実行して、各反復の結果を使用して単一のベクトルを作成しようとしています。
for x=0.2:0.1:1, a=quadgk(h,0.2,x) end
通常は機能するさまざまな方法を試しましたが、問題は、「quadgk」関数の「x」がスカラーでなければならないことです。
誰かがこれを手伝ってくれますか?
私があなたを正しく理解しているなら、あなたは各反復の結果をに入れたいと思うでしょうa。次のことができます。
a
count=0; for x=0.2:0.1:1 count=count+1; a(count)=quadgk(h,0.2,x) end