www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/StructureFieldsExample.m
%% Structure Fields % Create a structure array and view its fields. % Copyright 2015 The MathWorks, Inc. %% s(1,1).name = 'alice'; s(1,1).ID = 0; s(2,1).name = 'gertrude'; s(2,1).ID = 1; names = fieldnames(s)