| Contents | Index |
This table summarizes what's new in version 3.1 (R14):
New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems |
|---|---|---|
Yes | No | No |
New features and changes introduced in this version are described here:
The following new functions perform rounding operations on symbolic arrays:
ceil — Round a number x to the nearest integer greater than or equal to x.
fix — Round toward zero.
floor — Round a number x to the nearest integer less than or equal to x.
frac — Compute the fractional part of a number.
round — Round a number to the nearest integer.
For example,
x = sym([2.5; -9.639])
[fix(x) floor(x) round(x) ceil(x) frac(x)]
x =
5/2
-9639/1000
ans =
[ 2, 2, 3, 3, 1/2]
[ -9, -10, -10, -9, -639/1000]The new function quorem computes the quotient and remainder for division of integers and polynomials. For example,
syms x y p = x^3-2*x+5 [q,r] = quorem(x^5,p) p = x^3-2*x+5 q = x^2+2 r = -5*x^2-10+4*x
The following new functions compute the Dirac delta and Heaviside functions:
dirac — Compute the Dirac delta function.
heaviside — Compute the Heaviside step function.
For example,
dirac([-1 0 1])
ans =
0 Inf 0
heaviside([-1 0 1])
ans =
0 NaN 1The new function sort sorts symbolic expressions. For example,
syms a b c d e x sort([a c e b d]) ans = [ a, b, c, d, e] sort([a c e b d]*x.^(0:4).') ans = x^4*d+x^3*b+e*x^2+x*c+a
The new function coeffs computes coefficients of a multivariate polynomial. For example,
syms c t x y t = 2 + (3 + 4*log(x))^2 - 5*log(x); coeffs(expand(t)) ans = [ 11, 19, 16] z = 3*x^2*y^2 + 5*x*y^3 [c,t] = coeffs(z,y) z = 3*x^2*y^2+5*x*y^3 c = [ 3*x^2, 5*x] t = [ y^2, y^3]
The new function reshape reshapes symbolic arrays. For example,
syms x A = reshape(x.^(1:9),1,3,3) A(:,:,1) = [ x, x^2, x^3] A(:,:,2) = [ x^4, x^5, x^6] A(:,:,3) = [ x^7, x^8, x^9]
The following new functions enable you to convert symbolic arrays to nondouble numeric data types:
int8 — Convert a symbolic matrix to signed 8-bit integers.
int16 — Convert a symbolic matrix to signed 16-bit integers.
int32 — Convert a symbolic matrix to signed 32-bit integers.
int64 — Convert a symbolic matrix to signed 64-bit integers.
single — Convert a number to single precision.
uint8 — Convert a symbolic matrix to unsigned 8-bit integers.
uint16 — Convert a symbolic matrix to unsigned 16-bit integers.
uint32 — Convert a symbolic matrix to unsigned 32-bit integers.
uint64 — Convert a symbolic matrix to unsigned 64-bit integers.
The following new functions enable you to compute the logarithm of symbolic arrays to base 2 and base 10:
log10 — Compute base 10 logarithm.
log2 — Compute base 2 logarithm.
The new function mod computes modulus after division. For example,
syms x mod(x^3-2*x+999,10) ans = x^3+8*x+9
![]() | Version 3.1.5 (R2006b) Symbolic Math Toolbox and Extended Symbolic Math Toolbox Software | Compatibility Summary for Symbolic Math Toolbox and Extended Symbolic Math Toolbox Software | ![]() |

See how symbolic computations can help you find analytical solutions to math and engineering problems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |