Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I solve this problem?

1 次查看(过去 30 天)
Bajdar Nouredine
Bajdar Nouredine 2021-8-24
关闭: Bajdar Nouredine 2021-8-24
when I try to solve summation of double ontegration with a loop I got this error
Struct contents reference from a non-struct array object.
time_total=10; %100 seconds
dt=1; %step size in the t direction (time in seconds)
tmesh=0:dt:time_total; %iterates up to 100 seconds
tskip=2;
nt=length(tmesh);
for i = 1:nt ;
for p=1:10;
q (i) = integral2(@(phi,y) exp(-tmesh(i).*y./sin(phi)).*(1-y).^2.*cos(phi).^2.*sin(phi).*phi,0,pi/2,0,1);
V(i) = symsum(tmesh(i).p.^(tmesh(i)-1).*q(i));
end
end

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by