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.
Calculate the Levenshtein distance between two strings
464 Solvers
3985 Solvers
399 Solvers
3214 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
300 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!