Community Profile

photo

Rain


Queen's University

Active since 2013

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
How to replace the elements of a matrix using the conditions if,else?
Hi, Actually, there is a very simple way to do it: X=rand(10,10); X(X>0.5) = [-1]; Hope it is helpful.

más de 8 años ago | 22