The if statement did not work for x =1.
Their is a function for this already.
iscolumn(x)
I guess this exercise is about learning that this function exists.
Convert a vector into a number
503 Solvers
Magic is simple (for beginners)
2749 Solvers
281 Solvers
272 Solvers
724 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!