フィルターのクリア

XOR between two 3d arrays: array1>=250 xor array2>=170

1 回表示 (過去 30 日間)
Espen Mikkelsen
Espen Mikkelsen 2018 年 6 月 6 日
コメント済み: Espen Mikkelsen 2018 年 6 月 6 日
I have two 3d arrays sized 40*60*157800. I want to count number of values with array1>=250 xor array2>=170. I want to do this for each of the 40x60 values. This will give me a 2d array of 40*60*1. I have tried this code which is not working:
sum(myarray1>=10.5 xor myarray2>=50,3);

採用された回答

James Tursa
James Tursa 2018 年 6 月 6 日
編集済み: James Tursa 2018 年 6 月 6 日
You almost had the syntax correct. E.g.,
sum(xor(myarray1>=10.5,myarray2>=50),3)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by