Community Profile

photo

Johnny Zheng


Last seen: 11 months ago Active since 2020

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
How to replace negative elements in a Matrix with zeros?
A = A*(A>0); This also works! Have a summary of possible methods: A = A*(A>0); A = max(A,0); A(A<0) = 0;

3 years ago | 0