find_matrix_dimensi​ons

Finding matrix buried in matrix with zeros

You are now following this Submission

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

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

change in description (program works not only with 1's but with every number).

1.0.0