필터 지우기
필터 지우기

recurrence relation calculation comparison error

조회 수: 1 (최근 30일)
yogeshwari patel
yogeshwari patel 2022년 3월 14일
댓글: Torsten 2022년 3월 14일
I dont get the idea how to calculate the recurrsive relation .I started with following code but got stuck in the for loop
syms x a B
U=sym(zeros(1));
U(1)=a;
alpha=10;
g=0.01;
B=sym(zeros(1));
for k=1:10
B=0;
for m=1:k
B=B+U(m)*(k-m+1)*(k-m+2)*U(k-m+2)
end
k*(k+1)*U(k+2)+alpha*B=g*U(k)
end
The problem is attached
  댓글 수: 1
Torsten
Torsten 2022년 3월 14일
Solve for U(k+2) using paper and pencil.
Then you get an explicit recursion.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by