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.
405 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1493 Solvers
Back to basics 25 - Valid variable names
293 Solvers
399 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!