0001 function expDataStruct = ensemble_form_report(expDataStruct,params)
0002
0003
0004
0005
0006
0007
0008
0009 fnames = expDataStruct.vars;
0010 if (~ismember('form',fnames))
0011 error('This data structure does not contain form data');
0012 end
0013
0014 metaFieldConst = set_var_col_const(fnames);
0015 formDataStruct = expDataStruct.data{metaFieldConst.form};
0016
0017 formFilter = params.filt;
0018
0019
0020 for(fIdx = 1:length(formDataStruct))
0021 formDataStruct{fIdx} = ensemble_filter(formDataStruct{fIdx},formFilter);
0022 end
0023
0024
0025 expDataStruct.data{metaFieldConst.form} = formDataStruct;
0026
0027
0028 expTree = ensemble_datastruct2tree(expDataStruct);
0029
0030
0031 printParams.report.tables.write2file = 1;
0032 printParams.report.tables.fname = '/tmp/mymeta.csv';
0033 printParams.report.tables.columns = {{},...
0034 {'form_name'},...
0035 {'question_text','enum_values'}};
0036 ensemble_print_metadata(expTree,printParams);