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년 전 | 0
