What does L == 2 mean in MATLAB?

Posted by Matlaber on Stack Overflow See other posts from Stack Overflow or by Matlaber
Published on 2010-04-16T09:39:19Z Indexed on 2010/04/16 9:43 UTC
Read the original article Hit count: 129

Filed under:
|
    BW = logical([1 1 1 0 0 0 0 0
                  1 1 1 0 1 1 0 0
                  1 1 1 0 1 1 0 0
                  1 1 1 0 0 0 1 0
                  1 1 1 0 0 0 1 0
                  1 1 1 0 0 0 1 0
                  1 1 1 0 0 1 1 0
                  1 1 1 0 0 0 0 0]);
    L = bwlabel(BW,4);
    [r,c] = find(L == 2);

How can a matrix been compared with scalar?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about syntax