This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Jafar Mortadha
on 14 Jan 2018
How is the output true if the vector contains only one number? People posting such meaningless solutions: Please have some common sense!
ChrisR
on 3 Jun 2022
If that one number is 1, then the vector contains both a number and its square.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!