Scalar

버전 1.0.0.0 (2.22 KB) 작성자: Kenneth Johnson
The Scalar base class disallows non-scalar instantiation.
다운로드 수: 97
업데이트 날짜: 2015/2/16

라이선스 보기

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.

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Construct and Work with Object Arrays에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0