XOR between two 3d arrays: array1>=250 xor array2>=170
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
采纳的回答
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 Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!