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!