Set elements in a 3D array to zero based on a condition

6 次查看(过去 30 天)
Hello,
I am trying to set all entries in a 3D array that are less than 0 to be equal to 0. My variable Qr is 199x199x50.
I tried this with no success:
Qr(Qr<0)==0

采纳的回答

Matt J
Matt J 2022-8-9

更多回答(1 个)

Matt J
Matt J 2022-8-9

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by