Just find the number of columns of the given matrix.
Example
x = [1 2
3 4
5 6]
y = 2
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers569
Suggested Problems
-
7890 Solvers
-
3096 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1285 Solvers
-
581 Solvers
-
Side of an equilateral triangle
7234 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!