Masking out unwanted data
10 ビュー (過去 30 日間)
表示 古いコメント
Lets say , I have 2 matrix A and B .
A = [1 0 1];
B = [ 2 5 6];
Consider that, for the first element of A ( which is 1) we are getting the first element of B ( which is 2) . and for the second element A ( which is 0 ) we are getting second element in B ( which is 5) and so on.
Now, I want to make the code in such a way that , whenever in the matrix A the code finds its element 1 it mask out element in matrix B.
Example : Matrix A : 1st element is 1 so the code will maskout ( or put zero) in the first element of B which is 2.
Thanks in advance for the help!!!
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Find more on Resizing and Reshaping 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!