How to write an if-else statement for a function
Afficher commentaires plus anciens
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 commentaire
Sofie Önnemar
le 30 Août 2022
Modifié(e) : Walter Roberson
le 30 Août 2022
Réponses (2)
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!