语法:cat(dim,A1,A2,A3,...) 沿着dim对A1,A2,...进行拼接
# 建立两个size为(4,4,3,10)的4D数组a和b:
>> a = rand(4,4,3,10);
>> b = rand(4,4,3,10);
>> c = cat(4,a,b);
>> size(c)
ans =
4 4 3 20
语法:cat(dim,A1,A2,A3,...) 沿着dim对A1,A2,...进行拼接
# 建立两个size为(4,4,3,10)的4D数组a和b:
>> a = rand(4,4,3,10);
>> b = rand(4,4,3,10);
>> c = cat(4,a,b);
>> size(c)
ans =
4 4 3 20