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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.