User`s guide
R2012a
7-8
Mathematics
New Integral Functions
The new functions, integral, integral2, and integral3 perform numerical integration with
additional support for nonrectangular and unbounded regions of integration. They are
the recommended functions for performing quadrature.
Performance Enhancements
The following functions show improved performance:
• Arithmetic and similar basic math functions for double, single, and integer data types.
• The grid-based interpolation functions, interp2, interp3, and interpn.
• Generating random values using either rng('combRecursive') or
RandStream('mrg32k3a').
griddata Supports 3-D Data and Natural Neighbor Interpolation
griddata is now the recommended function for interpolating 2-D and 3-D scattered data.
griddata also has a new method option, 'natural', for specifying natural neighbor
interpolation.
TriScatteredInterp Accepts Complex Values
You can now use TriScatteredInterp to interpolate complex scattered data in a single
pass. For example, F = TriScatteredInterp(X,V) now accepts a complex vector V.
Set Functions Provide Option to Return Sets in Original Order
You now can specify the ordering of the output array returned by the functions unique,
union, intersect, setdiff, and setxor. The new argument, setOrder, is one of two strings,
'stable' or 'sorted'. Specify 'stable' if you want the elements in the output array
to be in the same order as in the input array. For example:
C = unique([9 2 2],'stable') returns C = [9 2].