Community Profile

photo

Rain


Queen's University

Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • First Answer

View badges

Feeds

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.

10 years ago | 22