Hello
I am trying to dynamically assign some of my variable names which are structures and them pass them through a script although I get an error
DATA=who('DATA*')ORIG=who('ORIGINAL*')countS=length(DATA)countC=length(ORIG)if countS==countC; for i=1:countSfigure scatter(DATA{i,1}.H,ORIGINAL{i,1}.H)lm(i)=polyval(DATA{i,1}.H,ORIGINAL{i,1}.H) end end
Though i get Attempt to reference field of non-structure array. The structures themselves contain fields that i want to iterate through other processes, am I doing something wrong?
thanks
Best Answer