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.
Which values occur exactly three times?
3817 Solvers
1223 Solvers
Find the peak 3n+1 sequence value
1107 Solvers
462 Solvers
270 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!