-
3 Comments
Lincoln Poon
on 4 Jan 2021
For the test for x=1, I think the answer should be an empty vector.
Alisio
on 4 Jan 2021
x=1 makes sense if you also consider 0. Then 0^2 + 1^2 = 1
goc3
on 6 Jan 2021
As David Verrelli pointed out, negative integers are also accepted in this problem (not only zero).
Suggested Problems
-
Make a random, non-repeating vector.
9797 Solvers
-
142 Solvers
-
Test if two numbers have the same digits
246 Solvers
-
748 Solvers
-
Convert Two Character String into a Binary Vector
209 Solvers
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!