find_matrix_dimensions
Version 1.0.1 (1.25 KB) by
Dimani4
Finding matrix buried in matrix with zeros
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://uk.mathworks.com/matlabcentral/fileexchange/94760-find_matrix_dimensions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
