findn

Function similar to find for multidimensional arrays.

You are now following this Submission

Very simple 4-line function that returns the indices of non-zero elements (actual dimension specific indices unlike 'find'). This is basically a find function for multidimentional arrays.

Cite As

Suresh Joel (2026). findn (https://au.mathworks.com/matlabcentral/fileexchange/3055-findn), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Operators and Elementary Operations in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Improved speed using ind2sub
making this file almost too trivial
License update