-
1 Comment
David Verrelli
on 21 Jun 2018
I like the readability of this submission. However the logic of the if statement is curious to me: it seems that after setting tf to false, tf can be reset back to true. Would it be more robust to either (i) initialise tf before your loop, or (ii) include a "break" command?
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15629 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
833 Solvers
-
268 Solvers
-
5516 Solvers
-
5511 Solvers
More from this Author38
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!