MATLAB COMPILER RELEASE NOTES Guia do Utilizador Página 168

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 716
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 167
R2013a
5-8
Changes to subclasses of built-in classes
Subclasses of built-in classes no longer inherit the following methods:
ones
zeros
true
false
cast
As a result of this change, you cannot call these methods with an object of a built-in
subclass. For example, given a class, mySubclassOfDouble, that derives from double,
the following attempt to call cast results in an error:
a = mySubclassOfDouble(1); % constructor
b = a.cast('int8'); % ok in R2012b but errors in R2013a
However, you can call the corresponding built-in functions with objects of the subclass.
Use the function syntax instead of the method dot notation syntax:
b = cast(a,'int8');
Compatibility Considerations
Change code that attempts to call these methods to call the built-in function instead. Use
function syntax instead of dot notation, as described in the previous section.
Conversion of error and warning message identifiers
For R2013a, error and warning message identifiers have changed in MATLAB.
Compatibility Considerations
If you have scripts or functions that use message identifiers that changed, you must
update the code to use the new identifiers. Typically, message identifiers are used to turn
off specific warning messages, or in code that uses a try/catch statement and performs an
action based on a specific error identifier.
Vista de página 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 715 716

Comentários a estes Manuais

Sem comentários