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

조회 수: 1 (최근 30일)
KCE
KCE 2022년 8월 9일
답변: Matt J 2022년 8월 9일
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에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by