findn

Function similar to find for multidimensional arrays.
3.8K Downloads
Updated 31 Mar 2016

View License

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://ch.mathworks.com/matlabcentral/fileexchange/3055-findn), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Operators and Elementary Operations in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

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