数据类型标识
确定变量的数据类型
MATLAB® 有许多函数可识别变量的数据类型或确定变量是否具有特定的数据类型。当调用或编写的代码依赖于具有特定数据类型的变量时,应使用这些函数。
函数
主题
- MATLAB 基础类
您可以在 MATLAB 中使用许多不同数据类型或类,包括单精度和双精度数、有符号和无符号整数、字符串、逻辑值、表、函数句柄等。决定使用哪个类取决于您的预期用途和内存存储需求。
- Use is* Functions to Detect State
There are many functions in MATLAB that detect if an input has a specified data type or a specified state, or if the elements of an input array meet a specified condition.
- Working with Objects in MATLAB
Some MATLAB functions return objects. Objects combine data with functions and methods.