How to write an if-else statement for a function
Ältere Kommentare anzeigen
The function is:
f(n) = sqrt(1 + f(n-1)) if n>1 and f=2 if n=1
but I don't know how to start even.
1 Kommentar
Sofie Önnemar
am 30 Aug. 2022
Bearbeitet: Walter Roberson
am 30 Aug. 2022
Antworten (2)
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!