Scalar

The Scalar base class disallows non-scalar instantiation.
97 download
Aggiornato 16 feb 2015

Visualizza la licenza

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.

Cita come

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

Compatibilità della release di MATLAB
Creato con R2014b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Construct and Work with Object Arrays in Help Center e MATLAB Answers
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0