Info

This question is closed. Reopen it to edit or answer.

How can I solve this problem?

1 view (last 30 days)
Bajdar Nouredine
Bajdar Nouredine on 24 Aug 2021
Closed: Bajdar Nouredine on 24 Aug 2021
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!