Now I am new to matlab, and now the basic syntax, however I am not sure how to write a function to loop for instance the following recurrence equation:
$y(n+1)=\exp(-y(n))$
..
where $y(1) = \exp(-y(0))$
and $y(0) = x$
Now I am new to matlab, and now the basic syntax, however I am not sure how to write a function to loop for instance the following recurrence equation:
$y(n+1)=\exp(-y(n))$
..
where $y(1) = \exp(-y(0))$
and $y(0) = x$
First define $x$:
Next, define the vector $y$:
Initialize the vector:
Then build a loop:
To plot: