MATLAB COMPILER RELEASE NOTES Guia do Utilizador Página 573

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 716
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 572
Programming
20-29
'MATLAB'
eval(s)
ans =
MATLAB
Compatibility Considerations
You might have to modify M-file programs that expect the previous behavior from
mat2str.
Warning Generated by try-catch
To accommodate future changes in the MATLAB error-handling capabilities, there is a
new restriction to the syntax of the try-catch block. When the first MATLAB statement
that follows the try keyword consists of just a single term (e.g., A as opposed to A+B)
occurring on the same line as the try, then that statement and the try keyword should
be separated by a comma. For example, the line
try A
should be written as either
try, A
or on two lines as
try
A
This affects only single-term statements. For example, the following statement continues
to be valid:
try A+B
The same holds true for the catch keyword and a single-term statement following the
keyword on the same line. A valid try-catch statement of this type should be composed
as follows:
try, A, catch, B, end
If you omit the commas following try and/or catch, your code will continue to operate
correctly. However, MATLAB will issue a warning:
Vista de página 572
1 2 ... 568 569 570 571 572 573 574 575 576 577 578 ... 715 716

Comentários a estes Manuais

Sem comentários