Write a function that takes a 2D matrix/1D vector x as input and returns a row vector containing the number of rows and the number of columns of the matrix. If the input matrix is empty return -1 for both the number of rows and columns.
You are not allowed to use the MATLAB built-in functions:
size
length
numel
height
width
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers1
Suggested Problems
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!