I have data sets stored to several variables like: p1_5, p1_7,p1_9....p1_19, and I want to calculate the std() of each data set. Now how to do it in a for loop in matlab? How to concatenate 'p1_' to n, but still keep it as a variable but not string?
for n = 5:2:19
std(p1_??);
end
evalcommand as Dan had recommended in his answer.