Dataset in Matlab -


i have large set of cross-sectional time series data in dataset in matlab , want extract arrays (columns) of data based on header given dynamically array in loop. can suggest how implement in matlab, have tried following code

cdslist = universe.bond; cdscount = length(universe.bond);  i=1:cdscount     cds = cdslist(i); % here want use variable cds dynamically give names dataset called spread, instance spread.cds cds changing in loop.   end 

is possible ? help

assuming cds string, can used dynamic field name:

cdslist = universe.bond; cdscount = length(universe.bond);  spread = struct;  = 1:cdscount     cds = cdslist{i};     spread.(cds) = data; end 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -