Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
n 行列 (45x5) の配列があります。
[45x5 double] [45x5 double]
すべての行列の列 5 から 1000 より大きいすべての値を見つけたいと思います。次に、これらの値を NaN に置き換えたいと思います。
すべてのマトリックスが 3D マトリックス内にある場所YourData:
YourData
YourData(YourData(:,5,:)>1000)=NaN;