You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Find a matrix which is buried inside the matrix with zeros. For example
000000
010101
000000
010101
000000
000000
010101
answer:
1 1 1
1 1 1
1 1 1
rows=3
columns=3
It works with every numbers not just with 1's.
Cite As
Dimani4 (2026). find_matrix_dimensions (https://au.mathworks.com/matlabcentral/fileexchange/94760-find_matrix_dimensions), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (1.25 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
