i want to find average of arrays named H_1 ,…..H_n. code should be dynamic such that for example n= 82 then program should importdata from H_1 to H_82 and find their average
what is the mistake with this program I am unable to get this.
n=5;
for q=1:n
assignin('base',['T_',num2str(q)],importdata('Tfunct2_',num2str(q),'.mat','TFunct')); T(1,n)=T_,num2str(q);endT_f=mean(T);
Best Answer