Scalar

The Scalar base class disallows non-scalar instantiation.
97 descargas
Actualizado 16 feb 2015

Ver licencia

The Scalar base class disallows non-scalar instantiation.

This constraint simplifies class design and avoids the need for
polymorphic arrays (matlab.mixin.Heterogeneous). Cell arrays or structs
may be used to aggregate Scalar objects.

Class Scalar disables construction of object arrays by "(...)" indexing,
by concatenation (cat, vertcat, horzcat), or with the "empty" function.
Scalar-derived classes can only be instantiated as scalars (length-1
objects). Application of array operations to Scalar-derived objects
result in runtime errors.

Citar como

Kenneth Johnson (2024). Scalar (https://www.mathworks.com/matlabcentral/fileexchange/49729-scalar), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2014b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Construct and Work with Object Arrays en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0