Quick search for local extremes Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: extr.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Miroslav Balda (View more)

Quick search for local extremes script description:




Publisher review:
Quick search for local extremes - New fast and reliable function for finding local extremes in a real vector. The new function extr.m analyses the given real vector carrying a sequence of samples to be analyzed. At the end, it returns a cell array of extreme positions in the sequence. The cell array consists of two cells only. The first one contains the logical vector of maxima and the other the similar one of minima. Should more equal values be present in adjacent elements of the vector, only one position is returned. The attention is also paid on low memory requirements and a speed of the procedure.Forms of calls:L = extr(x); % Find true local extremes% ..... x vector containing a sequence to be analyzed,% ..... L cell array {L(1), L(2)}, where% ..... L(1) is logical vector of positions of maxima,% ..... L(2) is logical vector of positions of minima.There are also circumstances, when the processing time is critical for a user, while the exact true extrems are of less priority. In that case he may use:L = extr(c,0); % Find true and false local extrems.False extrems form pairs of equal value minimum-maximum laying somewhere on the trend of the sequence. They are not extrems, but they do not harm in certain cases of consecutive processing.Examples:demoXtr; % See the program and figure demoXtr.jpgL = extr(x);y = x(L(1)|L(2)); % y is a vector of all extremesclear, x=rand(1e7,1)-.5; tic, L=extr(x); tocElapsed time is 2.974584 seconds. % (3GHz PC, Windows XP Prof.)clear, x=rand(1e7,1)-.5; tic, L=extr(x,0); tocElapsed time is 1.392926 seconds. % (3GHz PC, Windows XP Prof.) Requirements: ยท MATLAB Release: R14SP1
Quick search for local extremes is a Matlab script for Mathematics scripts design by Miroslav Balda. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5