필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

program using power series

조회 수: 2 (최근 30일)
shiv gaur
shiv gaur 2022년 2월 23일
마감: Jan 2022년 2월 25일
pl plot(t,x)
  댓글 수: 2
shiv gaur
shiv gaur 2022년 2월 23일
this is the program
plsolve
t=1:20;
a(1)=1;
b(1)=0;
c(1)=1;
sigma=10;
r=28;
d=(8/3);
sumA=0;
sumC=0;
sumB=0;
sumS=0;
sumZ=0;
for i=1:30
for p=1:29;
sumS=sumS+(a(p).*c(i-p));
sumZ=sumZ+(a(p).*b(i-p));
a(i+1)=((sigma)/(i+1))*(a(i)-b(i));
b(i+1)=(1/(i+1))*(r*a(i)-b(i)-sumS);
c(i+1)=(1/(i+1))*(sumZ-d*c(i));
sumA=sumA+a(i).*(t^i);
sumB=sumB+b(i).*(t^i);
sumC=sumC+c(i).*(t^1);
end
end
plot(t,sumB)
Arif Hoq
Arif Hoq 2022년 2월 23일
now i got it about your code. see here.
by the way you can not write your code exactly in matlab as wrtten in that book.

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by