Operands, specified as symbolic equations, inequalities, expressions, or arrays.
Inputs A and B must either be the same size or
have sizes that are compatible (for example, A is an
M-by-N matrix and B is a
scalar or 1-by-N row vector). For more
information, see Compatible Array Sizes for Basic Operations.
Tips
If you call simplify for a logical expression containing symbolic subexpressions, you can
get the symbolic constants symtrue and
symfalse. These
two constants are not the same as logical 1 (true) and logical 0 (false). To convert symbolic symtrue and
symfalse to logical values, use logical.
Starting in R2016b with the addition of implicit expansion, some combinations of
arguments for basic operations that previously returned errors now produce results. For
example, you previously could not add a row and a column vector, but those operands are now
valid for addition. In other words, an expression like [1 2] + [1; 2]
previously returned a size mismatch error, but now it executes.
If your code uses element-wise operators and relies on the errors that MATLAB® previously returned for mismatched sizes, particularly within a
try/catch block, then your code might no longer
catch those errors.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.