Code covered by the BSD License  

Highlights from
Find local extrema places and values

Be the first to rate this file! 19 Downloads (last 30 days) File Size: 1.84 KB File ID: #40007

Find local extrema places and values

by

 

Returns structure with local extrema (minimum, maximum) places and values.

| Watch this File

File Information
Description

Returns structure with local extrema (minimum, maximum) places and values.

Elements of output structure:
   minx: min places
   miny: min values
   maxx: max places
   maxy: max values

Example:

 v=[1 3 5 5 2 -2 -2 -1 8 -10 5];
 o1=extrems(v)
 o2=extrems(v,'ysort')
 o3=extrems(v,'strict')

 Outputs:
 o1 =
     minx: [6 10]
     miny: [-2 -10]
     maxx: [3 9]
     maxy: [5 8]
 o2 =
     minx: [10 6]
     miny: [-10 -2]
     maxx: [9 3]
     maxy: [8 5]
 o3 =
     minx: 10
     miny: -10
     maxx: 9
     maxy: 8

Required Products MATLAB
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us