Feeds
已回答
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;
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;
5 years 前 | 0