help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set zero to multiple values in a matrix


From: Nicholas Jankowski
Subject: Re: set zero to multiple values in a matrix
Date: Mon, 1 May 2017 06:10:32 -0400



On May 1, 2017 4:26 AM, "BOKU" <address@hidden> wrote:

ind=find(lab==sel) does not work

ind = find(lab==sel(1));  gives ind for all elements labeled with 14

as find does not handle arrays of different sizes (op1 is 301x301, op2 is 1x6) I need to loop it because simply enough I just want to do find with all entries in lab defined in sel. 


Ahh, my mistake. Maybe something like:

Ind=find(ismember(lab,sel))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]