This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Steven He
on 25 Aug 2016
How can be a smaller size? tf = rem(n,2)
SIVAPRAKASH DANABALASINGAM
on 10 Jan 2017
good job
Chris Armstrong
on 14 Nov 2019
I don't think that simply using tf=rem(n,2) should be allowed, its implicit casting which isn't a good thing to depend on.
Suggested Problems
-
Which values occur exactly three times?
5142 Solvers
-
1740 Solvers
-
465 Solvers
-
581 Solvers
-
6728 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!