小编T K*_*T K的帖子

字段内的结构

s = struct('field1',...           
        {
        struct('a',num2cell(0 + 4*rand(5,1)),'b',num2cell(0 + 4*rand(5,1)),'c',0);...
        struct('a',num2cell(0 + 4*rand(5,1)),'b',num2cell(0 + 4*rand(5,1)),'c',0)...
        },...
        'field2',...
        {
        struct('a',num2cell(0 + 4*rand(5,1)),'b',num2cell(0 + 4*rand(5,1)),'c',0);...
        struct('a',num2cell(0 + 4*rand(5,1)),'b',num2cell(0 + 4*rand(5,1)),'c',0)...
        }...
       );
Run Code Online (Sandbox Code Playgroud)

如何在每个字段中循环结构以避免列出字段中的每个结构?

matlab structure

5
推荐指数
1
解决办法
104
查看次数

标签 统计

matlab ×1

structure ×1