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;