findextrema.m

Finds minima and maxima of data.

이 제출물을 팔로우합니다

FINDEXTREMA - finds minima and maxima of data

If 'y' is the data the function finds the maximas 'ma' and minimas 'mi'.
The x-position of the extrema are interpolated.

Usage: [ma,mi]=findextrema(y);

Example:
x=-10:0.1:10; y=sin(x);
[ma,mi]=findextrema(y);
plot(y); hold on; plot(ma,y(round(ma)),'ro'); plot(mi,y(round(mi)),'gs'); hold off;

인용 양식

Schuberth Schuberth (2026). findextrema.m (https://kr.mathworks.com/matlabcentral/fileexchange/3586-findextrema-m), MATLAB Central File Exchange. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Interpolation에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0