Upgrading from MATLAB 4 to MATLAB 5.0     Search    Help Desk 

New Data Analysis Features

MATLAB 5.0 provided an expanded set of basic data analysis functions.

Table 1-15: New Statistical Data Analysis Functions
Function
Description
convhull
Convex hull.
cumtrapz
Cumulative trapezoidal numerical integration.
delaunay
Delaunay triangularization.
dsearch
Search for nearest point.
factor
Prime factors.
inpolygon
Detect points inside a polygonal region.
isprime
True for prime numbers.
nchoosek
All possible combinations of n elements taken k at a time.
perms
All possible permutations.
polyarea
Area of polygon.
primes
Generate a list of prime numbers.
sortrows
Sort rows in ascending order.
tsearch
Search for enclosing Delaunay triangle.
voronoi
Voronoi diagram.

MATLAB 5.0 also offered expanded data analysis in the areas of:

Higher-Dimension Interpolation

The new functions interp3 and interpn let you perform three-dimensional and multidimensional interpolation. ndgrid provides arrays that can be used in multidimensional interpolation.

Table 1-16: New Interpolation Functions
Function
Description
interp3
Three-dimensional data interpolation (table lookup).
interpn
Multidimensional data interpolation (table lookup).
ndgrid
Generate arrays for multidimensional functions and interpolation.

griddata Based on Delaunay Triangulation

griddata supports triangle-based interpolation using nearest neighbor, linear, and cubic techniques. It creates smoother contours on scattered data using the cubic interpolation method.

Set Theoretic Functions

The functions union, intersect, ismember, setdiff, and unique treat vectors as sets, allowing you to perform operations like union , intersection , and difference of such sets. Other set-theoretical operations include location of common set elements (ismember) and elimination of duplicate elements (unique).

Table 1-17: New Set Functions  
Function
Description
intersect
Set intersection of two vectors.
ismember
Detect members of a set.
setdiff
Return the set difference of two vectors.
setxor
Set XOR of two vectors.
union
Set union of two vectors.
unique
Return unique elements of a vector.



[ Previous | Help Desk | Next ]