Publisher review:findfirst - MEX file for finding first or last non-zero. [VALUE,INDEX] = FINDFIRST(A,SEARCHDIR)Returns the value and optionally index of the first non-zero in A.A must be full and doubleIf SEARCHDIR = 'first' (default) the search is from the first indexIf SEARCHDIR = 'last', the search is backwards from the last indexThis is a cmex file, and is an order of magnitude faster than using FIND, and two orders of magnitude faster than using MATLAB loops.Tested on Windows NT/2000 VC 6.0, Linux (gcc 2.95) and Solaris (courtesy A Pearson) Requirements: ยท MATLAB Release: R13
findfirst is a Matlab script for Development Tools scripts design by Richard Hindmarsh.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris