I am loading a loop in which different variables are loaded in every iteration. Name of each variable is different in each iteration. Is there anyway in Matlab to automatically access the value of that variable. So far I have tried like that:
for i=1:4
str_load=strcat (fold_str, 'class_',class{:,i}, \Feeds_',files{:,i},'.mat');
load(str_load)
variables = who;
var = strncmpi(variables,'Feed_A',6);
chk=find(var==1);
org_var=variables(chk,:);
end
I can have the name of the targeted variable in org_var. But How can I access values inside that?