This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Mohammed
on 19 Jan 2014
realized my true/false assignments were off. They should be reverse...if mod(n,2) ~= 0; tf=true; else tf = false; end
SIVAPRAKASH DANABALASINGAM
on 10 Jan 2017
good job
Suggested Problems
-
15124 Solvers
-
779 Solvers
-
Getting the indices from a vector
10812 Solvers
-
5719 Solvers
-
988 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!