ChunkMinMax

버전 1.0.0.0 (13 KB) 작성자: Jan
Min and Max over chunks of a vector
다운로드 수: 251
업데이트 날짜: 2015/1/2

라이선스 보기

ChunkMinMax - min and max element of sub-vectors
[Mins, Maxs] = ChunkMinMax(X, Start, Stop, Valid)
INPUT:
X: Real double array.
Start, Stop: Vectors of type double.
Valid: If this is the string 'valid', X cannot contain NaNs and the function
runs 10% faster. Optional, default: 'nans'.
OUTPUT:
Mins, Maxs: Minimal and maximal values of the intervals:
Data(Start(i):Stop(i))
NaN is replied for empty intervals.
EXAMPLES:
data = rand(1, 100);
starts = [5 10 15 20]; stops = [9 14 19 24];
[mins, maxs] = ChunkMinMax(data, starts, stops);

The Mex-file is compiled the first time, when this function is called.
You can compile manually also:
mex -O ChunkMinMax.c
See the C-file for further instructions.
Pre-compiled files can be downloaded: http://www.n-simon.de/mex
Run the unit-test uTest_ChunkMinMax after compiling to check validity and speed!

인용 양식

Jan (2024). ChunkMinMax (https://www.mathworks.com/matlabcentral/fileexchange/48929-chunkminmax), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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