matlab - access and create new array from the array cell of struct -


in file .mat in matlab,there array cell 'channels' 1x1 struct. want create new array contains ['lag_01' 'lag_02' ... 'lpg_12'].

is there method ?

thanks,

channels

ans =

x.lag_01.: 'lag_01' x.lag_02.: 'lag_02' x.lag_03.: 'lag_03' x.lag_04.: 'lag_04' x.lag_05.: 'lag_05' x.lag_06.: 'lag_06' x.lag_07.: 'lag_07' x.lag_08.: 'lag_08' x.lag_09.: 'lag_09' x.lag_10.: 'lag_10' x.lag_11.: 'lag_11' x.lag_12.: 'lag_12' x.lag_13.: 'lag_13' x.lag_14.: 'lag_14' x.lag_15.: 'lag_15' x.lag_16.: 'lag_16' x.lag_17.: 'lag_17' x.lag_18.: 'lag_18' x.lag_19.: 'lag_19' x.lag_20.: 'lag_20' x.lag_21.: 'lag_21' x.lag_22.: 'lag_22' x.lag_23.: 'lag_23' x.lag_24.: 'lag_24' x.lag_25.: 'lag_25' x.lag_26.: 'lag_26' x.lag_27.: 'lag_27' x.lag_28.: 'lag_28' x.lag_29.: 'lag_29' x.lag_30.: 'lag_30' x.lag_31.: 'lag_31' x.lag_32.: 'lag_32' x.lag_33.: 'lag_33' x.lag_34.: 'lag_34' x.lag_35.: 'lag_35' x.lag_36.: 'lag_36' x.lag_37.: 'lag_37' x.lag_38.: 'lag_38' x.lag_39.: 'lag_39' x.lag_40.: 'lag_40' x.lag_41.: 'lag_41' x.lag_42.: 'lag_42' x.lag_43.: 'lag_43' x.lag_44.: 'lag_44' x.lag_45.: 'lag_45' x.lag_46.: 'lag_46' x.lag_47.: 'lag_47' x.lag_48.: 'lag_48' x.lag_49.: 'lag_49' x.lag_50.: 'lag_50' x.lag_51.: 'lag_51' x.lag_52.: 'lag_52' x.lag_53.: 'lag_53' x.lag_54.: 'lag_54' x.lag_55.: 'lag_55' x.lag_56.: 'lag_56' x.lag_57.: 'lag_57' x.lag_58.: 'lag_58' x.lag_59.: 'lag_59' x.lag_60.: 'lag_60' x.lag_61.: 'lag_61' x.lag_62.: 'lag_62' x.lag_63.: 'lag_63' x.lag_64.: 'lag_64' x.lpg_01.: 'lpg_01' x.lpg_02.: 'lpg_02' x.lpg_03.: 'lpg_03' x.lpg_04.: 'lpg_04' x.lpg_05.: 'lpg_05' x.lpg_06.: 'lpg_06' x.lpg_11.: 'lpg_11' x.lpg_12.: 'lpg_12' 

struct2cell friend:

c = struct2cell(s) converts m-by-n structure s (with p fields)  p-by-m-by-n cell array c. 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -