Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How can I solve this problem?

1 vue (au cours des 30 derniers jours)
Bajdar Nouredine
Bajdar Nouredine le 24 Août 2021
Clôturé : Bajdar Nouredine le 24 Août 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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by