User`s guide

R2007a
20-22
Mathematics
New Functions
Function Description
bsxfun Applies an element-by-element binary operation to two full
arrays with singleton expansion enabled
ilu Performs the sparse incomplete LU factorization
More Efficient Matrix Multiplication for Sparse Matrices
Matrix multiplication for A'*b now handles sparse matrices more efficiently.
rand Function Uses the Mersenne Twister Algorithm as Default
The rand function now uses the Mersenne Twister algorithm as default generator
algorithm. This method generates double precision values in the closed interval [2^(-53),
1-2^(-53)], with a period of (2^19937-1)/2. Prior to this release, MATLAB used an
algorithm known as the Subtract-with-Borrow (SWB) algorithm.
The rand function now produces different results than in previous releases. However,
the results returned are still pseudorandom values drawn from a standard uniform
distribution. Because the values returned by rand are intended to be random, this
change should not affect your code.
Compatibility Considerations
There are several things to keep in mind regarding this change:
If your code requires the exact values returned by rand in previous releases, you
should use the statement
rand('state',0);
to reset rand to use the SWB algorithm. The new default algorithm's internal state at
startup is equivalent to using the statement