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.
29186 Solvers
722 Solvers
314 Solvers
Replace multiples of 5 with NaN
364 Solvers
Switch matrix to a column vector
266 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!