Skip to Main Content Skip to Search
Product Documentation

Mathematics, MATLAB Version 7.12 (R2011a)

New features and changes introduced in this version are:

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

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.

Compatibility Considerations

Since the QR factorization is not unique, these different results are still correct. Ensure that your code does not depend on the values of the elements of the factors Q and R.

Functionality Being Removed

Function NameWhat Happens When You Use This FunctionUse This Function InsteadCompatibility Considerations
besselErrorsbesseljReplace all instances of bessel with besselj.
intwarningErrorsNoneRemove all instances of intwarning from your code.
luincWarnsiluReplace instances of luinc with ilu.
cholinc(X,'inf')WarnsNoneRemove all instances of cholinc(X,'inf') from your code.
All other syntaxes of cholinc except cholinc(X,'inf')WarnsicholReplace these instances of cholinc with ichol.
RandnAlg property of RandStream classStill runsNormalTransform property of RandStream classReplace all existing instances of RandnAlg with NormalTransform.
setDefaultStream method of RandStream classStill runssetGlobalStream method of RandStream classReplace all existing instances of RandStream.setDefaultStream with RandStream.setGlobalStream.
getDefaultStream method of RandStream classStill runsgetGlobalStream method of RandStream classReplace all existing instances of RandStream.getDefaultStream with RandStream.getGlobalStream.
rand or randn with the 'seed', 'state' or 'twister' inputsStill runsrngSee Updating Your Random Number Generator Syntax in the MATLAB Mathematics documentation.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS