User`s guide
Mathematics
9-9
Mathematics
New Function rng
The new rng function controls the random number generator used by rand, randi, and
randn. For a demonstration, see this instructional video.
rng is the recommended alternative to former rand and randn input syntaxes 'seed',
'state' and 'twister'. rng is a simpler alternative to the RandStream class. To use
rng, see the documentation on Updating Your Random Number Generator Syntax.
New Function ichol
The new ichol function performs incomplete Cholesky factorization and is the
recommended alternative to cholinc.
New Option for gammainc
The new options gammainc(X,A,'scaledlower') and
gammainc(X,A,'scaledupper') now return scaled versions of the incomplete gamma
function gammainc.
Performance Enhancement
• Matrix transpose
• Element-wise single precision functions
• Sparse matrix indexed assignment
• Many linear algebra functions
• Convolution for long vectors and large matrices with conv and conv2
Changes to qr
In R2010a and R2010b, the upper triangular output R from the full qr function was
guaranteed to have real and nonnegative diagonal elements. In this release, the behavior
reverts to that of R2009b and prior releases. That is, the diagonal of R may contain
complex and negative elements, and will affect the unitary output Q correspondingly.