[data_st] = ensemble_get_vals_from_data_struct(data_st,column) returns a column of a data struct initialized by ensemble_init_data_struct 14 Feb, 2007 First Version, S.T.
0001 function columnData = get_vals_from_data_struct(data_st,columnName) 0002 % 0003 % [data_st] = ensemble_get_vals_from_data_struct(data_st,column) 0004 % 0005 % 0006 % returns a column of a data struct initialized by 0007 % ensemble_init_data_struct 0008 % 0009 % 14 Feb, 2007 First Version, S.T. 0010 0011 colIdx = strmatch(columnName,data_st.vars); 0012 columnData = data_st.data{colIdx}; 0013 0014 0015 0016