如何在matlab建立一个矩阵,矩阵每个元素都是结构体3
发布网友
发布时间:2023-10-16 06:28
我来回答
共1个回答
热心网友
时间:2024-11-08 04:34
CodeGroupA = struct;
CodeGroupB = struct;
CodeGroupC = struct;
CodeGroupD = struct;
CodeGroup = cell(2,2); % 用元胞数组实现
CodeGroup{1,1} = CodeGroupA;
CodeGroup{1,2} = CodeGroupB;
CodeGroup{2,1} = CodeGroupC;
CodeGroup{2,2} = CodeGroupD;
CodeGroup
CodeGroup =
[1x1 struct] [1x1 struct]
[1x1 struct] [1x1 struct]