MATLAB: What does this code compute

masking

what does this code compute? mask ( inside ) = ones ( size ( inside ) )

Best Answer

  • It set's all entries in mask, where inside is true, to one. I guess
    mask(inside) = 1;
    should do the same in fact.
    Titus