Help with Graphing Difference Equations
古いコメントを表示
I'm trying to graph these and a hint was given to use the power and semilogy functions. General advice or help with a) would be appreciated!

2 件のコメント
Davide Masiello
2022 年 10 月 1 日
Hi @McKenna Mason, it is costumary on this forum that you share your attempt at coming up with a code.
McKenna Mason
2022 年 10 月 1 日
採用された回答
その他の回答 (1 件)
syms x n a b
f = x^2-5*x+6;
xsol = solve(f==0);
y = a*xsol(1)^n + b*xsol(2)^n
csol = solve([subs(y,n,0)==2,subs(y,n,1)==5],[a,b])
y = subs(y,[a,b],[csol.a,csol.b])
simplify(subs(y,n,n)-5*subs(y,n,n-1)+6*subs(y,n,n-2))
カテゴリ
ヘルプ センター および File Exchange で Mathematics and Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



