No BSD License  

Highlights from
findn

4.71429

4.7 | 7 ratings Rate this file 10 Downloads (last 30 days) File Size: 1.05 KB File ID: #3055

findn

by Suresh Joel

 

26 Feb 2003 (Updated 04 Mar 2003)

Function similar to find for multidimensional arrays.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 5.3 (R11)
Other requirements none
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
08 Sep 2004 Alexandra Badea  
09 Feb 2005 rolando salazar

for homework, thanks

16 Mar 2005 Craig Smith

Very good

12 Dec 2006 Steffan Kennett  
09 Jul 2007 Clayton Davis

Definitely more intuitive than the original find() function

12 Jan 2008 Sel Erz

Thanks for you help! It works and makes me very happy!! Looking for this!

31 Jan 2008 Felipe Salinas

So simple, and extremely useful. Thanks!

Please login to add a comment or rating.
Updates
28 Feb 2003

multiple indices bug fixed

04 Mar 2003

Improved speed using ind2sub
making this file almost too trivial

Tag Activity for this File
Tag Applied By Date/Time
matrices Suresh Joel 22 Oct 2008 06:57:14
find Suresh Joel 22 Oct 2008 06:57:14
3d matrix Suresh Joel 22 Oct 2008 06:57:14
4d matrix Suresh Joel 22 Oct 2008 06:57:14
index Suresh Joel 22 Oct 2008 06:57:14
utilities Suresh Joel 22 Oct 2008 06:57:14

Contact us at files@mathworks.com