![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/24348247_1641835200683_DEF.jpg)
Tanuj Monu
National Institute of Technology
自 2021 起处于活动状态
Followers: 0 Following: 0
Master's Student
Spoken Languages:
English, Hindi
English, Hindi
Feeds
已回答
Fibonacci sequence with loop
function f = fib(n) f(1) = 1; f(2) = 1; for i = 3:n f(i) = f(i-1) + f(i-2); end f = f(end); end
Fibonacci sequence with loop
function f = fib(n) f(1) = 1; f(2) = 1; for i = 3:n f(i) = f(i-1) + f(i-2); end f = f(end); end
2 years 前 | 0