你可以使用函数ndims(x)看看,是不是等于3
c表示维数,肯定是整数!大于1就说明肯定x大于等于3维
[M1,M2,M3,...,MN] = SIZE(X) 返回前N个维数
N > NDIMS(X), size返回1 补充,
N < NDIMS(X), MN contains the product of the sizes of the remaining dimensions,
i.e., dimensions N+1 through
NDIMS(X).
温馨提示:答案为网友推荐,仅供参考