David Browne - MATLAB Cody - MATLAB Central

David Browne

10919
Rank
2
Badges
500
Score
51 – 100 of 117

David Browne received Commenter badge for Solution 723453

on 6 Sep 2016

David Browne submitted a Comment to Solution 723453

Yes there are 2 ways. You can initialise f1 as a vector [1, 1]. You also don't need the if else statement if you use start i = 1:n and then use f1(i+2) = ...

on 6 Sep 2016

51 – 100 of 117
Go to top of page