I'm trying to compute f(x0), f(f(x0)) (written as (f 3 )(x0)), and (f 100)(x0). With the given initial value x0 ∈ [0, 1]. But i'm not sure where I'm getting the error
1 view (last 30 days)
Show older comments
Commented: John Grand on 25 May 2021
let x0=0.35 and y=f(x0)
calculting f^N(x0) N can be 1,2,3, or 100
For i = 1: N-1
Jan on 25 May 2021
This is not Matlab. There is neither a "Let" command, nor a "For". x₀ is not a valid name of a variable.
Please read the Getting Started chapters and look an Matlab's Onramp to learn the basics.
N = 100;
x0 = 0.35;
y = f(x0);
for k = 1:N-1
y = f(y);
More Answers (0)
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!