class vs data type?

3 次查看(过去 30 天)
ABTJ
ABTJ 2020-2-23
回答: Rik 2020-2-23
What is difference between class and data type in MATLAB?or both exactly same??

回答(1 个)

Rik
Rik 2020-2-23
In general I would consider 'class' a superset of 'data type' and only include the core Matlab clases a list of data types, so the integer types (uint8, int16, etc), the floats (single and double), the texts (char and string), and the containers (cell and struct).
Classes can be internal classes (built in to the core Matlab or a toolbox), or classes you create with a classdef m-file.
But I'm not aware of any official distinction between the two.

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by