Find a submatrix in a matrix

29 次查看(过去 30 天)
han
han 2020-4-10
评论: han 2020-4-10
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

采纳的回答

KSSV
KSSV 2020-4-10
  3 个评论
darova
darova 2020-4-10
rout and cout are indices of A matrix, where A=B
han
han 2020-4-10
ahh i see, thank you!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by