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 (최근 30일)
이전 댓글 표시
let x0=0.35 and y=f(x0)
calculting f^N(x0) N can be 1,2,3, or 100
Let N=100;
x₀=0.35;
fN=f(x0);
For i = 1: N-1
End
fN
댓글 수: 0
채택된 답변
Jan
2021년 5월 25일
This is not Matlab. There is neither a "Let" command, nor a "For". x₀ is not a valid name of a variable.
N = 100;
x0 = 0.35;
y = f(x0);
for k = 1:N-1
y = f(y);
end
y
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!