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 (2024). findn (https://www.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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

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