I would like to change the name of one of the variable names in a dataset array. I can do it like this
temp=get(DS);vn=temp.VarNames;vn{3}='new name';set(DS,'VarNames',vn);
Is there an easier way to do this?
datasetdataset classrename
temp=get(DS);vn=temp.VarNames;vn{3}='new name';set(DS,'VarNames',vn);
Best Answer