function (nstruct)=struct2vars(ostruct)
cmd=sprintf('%s=ostruct.%s(indx);', field_name, field_name);
eval(cmd);
