Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最初の6回の反復を計算する方法
$x_{0}=0$ of $x_{n+1}=e^(-x_{n})$?
私の問題は、これらの反復でテーブルを作成することです。私はMatlabを初めて使用します。
まあ、簡単な解決策は単純なforループです:
for
x= zeros(1, 6); for n = 2:6 x(n) = exp(-x(n - 1)); end
MATLAB配列のインデックスは、0ではなく1から始まることに注意してください。