|
From: | Nicholas Jankowski |
Subject: | Re: set zero to multiple values in a matrix |
Date: | Sun, 30 Apr 2017 22:00:42 -0400 |
Hello,
i would like to know if there is a fast way to select some items of a indexed matrix?
this is not working in my case ?!
sel =
[14 19 23 24 25 29]
lab is a 301x301 labeled matrix
numel(unique(lab))
ans = 47
I want to do something like
lab(lab==!sel)=0
do I really need to go through a loop for doing this?
[Prev in Thread] | Current Thread | [Next in Thread] |