且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Matlab中合并2D矩阵以形成3D矩阵

更新时间:2023-11-12 08:37:04

使用 cat 沿第三维连接是一种优雅的方法-

Using cat to concatenate along the third dimension might be the elegant way -

D = cat(3,A,B,C)

此处,第一个输入参数3指定要执行级联的维度.

Here, the first input argument 3 specifies the dimension along which the concatenation is to be performed.