Home > other >  Matlab data processing problem, a simple matrix calculations, there is a logical matrix, and a primi
Matlab data processing problem, a simple matrix calculations, there is a logical matrix, and a primi

Time:09-27

Inquire of

I now have a 91 x109x91 original matrix and a 91 x109x91 logical matrix as a mask
How can you get a mask on the data on the logical primitive matrix as a new 91 x109x91 matrix

Analogy
There is a raw data is
1, 2, 3, 4, 5
1, 2, 3, 4, 5
1, 2, 3, 4, 5
A mask
1 1 0 0 1
0 0 1 1
0 0 0 0 0

How to get a
0, 2, 3, 0 5
0 0 2, 4, 5
0 0 0 0 0
  • Related