Sorting same rows & columns in two different matrices?
1 次查看(过去 30 天)
显示 更早的评论
I have two matrices
A =
16 2 3 13
5 11 0 8
9 7 NaN 12
4 14 15 1
B =
6 NaN 3 11
NaN 16 10 0
9 3 6 12
8 14 20 1
I want to select non-zero or no NaN values from matrix 'A'. These values are placed in certain rows:columns of the matix. I want to consider those selected rows:columns from A, and select same rows:columns in matrix B (of same szie). For small matrices, it is easier to recognise but how do we do in matrices of size 92x128. Any leads will be appreciated?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!