Here is an example for integral3
According to this integration is done from z to x
You have only y. Looks like x=x(y) in your case
So you have to integrate by x first
Try to replace limits of integration
Phi_ij1 = @(i,j) integral2(@(x,y)B_zi(i,x,y), 0, y_max1(j)), 0, @(y)x_max1(y,j) - ...
integral2(@(x,y)B_zi(i,x,y), y_min1(j),y_max1(j), 0, @(y)x_max1(y,j)) ;
5 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819226
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819226
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819246
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819246
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819252
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819252
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819288
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819288
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819303
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/514539-how-can-i-put-an-integral-inside-a-for-loop-when-the-bounds-depend-on-the-loop-s-variable#comment_819303
サインインしてコメントする。