How to write an if-else statement for a function
古いコメントを表示
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 件のコメント
Sofie Önnemar
2022 年 8 月 30 日
編集済み: Walter Roberson
2022 年 8 月 30 日
回答 (2 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!