MATLAB class函数可以获取变量或对象的类型 %class函数可以获取变量或对象的类型 a=[1 3 7]%默认为double class(a) b=int16(a) class(b) whos 运行结果如下