Find a submatrix in a matrix
10 views (last 30 days)
Show older comments
Hi,
I am trying to find the colums and rows in a large matrix that contain the submatrix.
Say we have
T = [0,3,0,0,0,0;3,0,4,0,8,0;0,4,0,1,0,0;0,0,1,0,0,0;0,8,0,0,0,6;0,0,0,0,6,0]
0 3 0 0 0 0
3 0 4 0 8 0
0 4 0 1 0 0
0 0 1 0 0 0
0 8 0 0 0 6
0 0 0 0 6 0
and we have a submatrix of
S = [0,3,0,0;3,0,4,0;0,4,0,1;0,0,1,0]
0 3 0 0
3 0 4 0
0 4 0 1
0 0 1 0
how can we find the rows and columns in T that contain submatrix S please?
TIA
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!