findfirst

버전 1.1.0.0 (2.33 KB) 작성자: Richard Hindmarsh
MEX file for finding first or last non-zero.
다운로드 수: 1.6K
업데이트 날짜: 2009/6/18

라이선스 보기

[VALUE,INDEX] = FINDFIRST(A,SEARCHDIR)
Returns the value and optionally index of the first non-zero in A.
A must be full and double
If SEARCHDIR = 'first' (default) the search is from the first index
If SEARCHDIR = 'last', the search is backwards from the last index

This 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)

인용 양식

Richard Hindmarsh (2024). findfirst (https://www.mathworks.com/matlabcentral/fileexchange/2631-findfirst), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Changed to BSD license

1.0.0.0