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.
Duplicate each element of a vector.
520 Solvers
Getting the indices from a matrice
367 Solvers
Find nearest prime number less than input number
274 Solvers
Relative ratio of "1" in binary number
410 Solvers
Rounding off numbers to n decimals
1082 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!