Feeds
已回答
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.
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.
11 years 前 | 22