查看变量类型-matlab

问题描述:

查看变量类型-matlab
怎么查看matlab中一个变量是什么类型的?
还有,下面的命令,输出为什么 b=0
>> a=struct('Display','final')
a =
Display:'final'
>> whos a
Name Size Bytes Class Attributes
a 1x1 134 struct
>> b=isa(a,'stuct')
b =
0
1个回答 分类:综合 2014-11-12

问题解答:

我来补答
1 查看变量类型的函数是class,比如:
class(a),结果是 struct
2 输出为0的原因是因为你拼错了,应该是struct,不是stuct,少了一个字母
 
 
展开全文阅读
剩余:2000