I need a function that selects specific variables in my workspace (using wildcards), assigns their values (=value of these variables) to a new variable, (AND THIS IS THE PART WHERE I GET STUCK) manipulates them, and then saves this new variables under the old variable name.
varnames= who('*_small_*');
for n=length(varnames)
    new = str2cell(varnames(n);  %THIS STEP DOES NOT WORK.
    %manipulation of those values;
    filename=varnames(n);
    save(filename,new);
end;
Anybody idea how to call the variables that I need and extract their values? Probably my solution is not the best, so feel free to suggest an alternative to who.
thanks a lot!