recurrence relation calculation comparison error
    7 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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 件のコメント
回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!