Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I solve this problem?

1 Ansicht (letzte 30 Tage)
Bajdar Nouredine
Bajdar Nouredine am 24 Aug. 2021
Geschlossen: Bajdar Nouredine am 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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by