User`s guide
R2011b
8-6
Mathematics
New Functionality for Grid-Based Interpolation
MATLAB includes a new class, griddedInterpolant, for grid-based interpolation.
griddedInterpolant works with grids in ndgrid format and complements the
functionality provided by interpn to provide improved performance and memory
efficiency.
Performance Enhancements
The following functions show improved performance:
• Some integer math functions
• Some linear algebra functions, including chol and 3-output form of qr
• Trigonometric functions
Permutation Option for randperm
The randperm function and the RandStream.randperm method now have the option of
returning random permutations of k integers selected at random from the integers 1
through n.
Return Permutation Information in Vector for qr
If you use the three-output form of qr in noneconomy mode, you can now specify
'vector' as an input argument. The permutation information will return a vector
instead of a matrix.
Changes to meshgrid and ndgrid
The functions meshgrid and ndgrid have changed behavior under certain calling
scenarios:
• When more than one input argument is passed to meshgrid, the dimensionality
of the output arrays is deduced from the number of inputs. Previously the
dimensionality was deduced from the number of outputs. For example, [x,y] =