Using the C Math Library    

Extending Logical Indexing to N Dimensions

Logical indexing works on n-dimensional arrays just as you'd expect. The logical filtering happens the same way, and the subscript size governs the result size in the same manner. For details on the syntax, see Extending Two-Dimensional Indexing to N Dimensions.


 Using a Scalar and a Logical Vector Assigning Values to Array Elements