How do you compare two matrices?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have two 3D matrices of ones (and zeros) of a (filled) cone like shape. The matrices are the same size, but the cone sizes differ. I want to "subtract" the smaller of the two matrices from the other matrix element by element. resulting in a third matrix of the "leftover" ones (and zeros). A-B = C doesn't seem to work. Does anybody have an idea on how two do that?
2 件のコメント
KSSV
2018 年 5 月 31 日
Two matrices should be same to subtract. Get them to same size. As your matrices are filled with 0 and 1.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!