[Top][All Lists]

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

Re: set zero to multiple values in a matrix

From: BOKU
Subject: Re: set zero to multiple values in a matrix
Date: Mon, 1 May 2017 12:35:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

Thank you very much!

that is working perfectly!

Even better since ismember(lab,sel) returns a logical mask matrix! :-) and that is exactly what i need!

cheers chris

On 2017-05-01 12:10, Nicholas Jankowski wrote:

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:


reply via email to

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