| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Symbolic Math Toolbox |
| Contents | Index |
| Learn more about Symbolic Math Toolbox |
R = simplify(S)
R = simplify(S, n)
R = simplify(S) simplifies each element of the symbolic matrix S using MuPAD simplification rules.
R = simplify(S, n) uses the positive integer n to control how many steps of simplification the simplify function attempts. The default value (without n) is n = 100.
Simplify the trigonometric expression:
syms x; simplify(sin(x)^2 + cos(x)^2)
The result is:
ans = 1
Simplify the expression:
syms a b c; simplify(exp(c*log(sqrt(a+b))))
The result is:
ans = (a + b)^(c/2)
Simplify the expressions from the list:
S = [(x^2 + 5*x + 6)/(x + 2), sqrt(16)]; R = simplify(S)
The result is:
R = [ x + 3, 4]
collect, expand, factor, horner, simple
![]() | simple (sym) | single (sym) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |