for k=1:8 cd(phonemes{k}); data=dir('*.pcm'); for i=1:length(data) fid=fopen(data(i).name,'r'); phone{k}.train_sig{i}=fread(fid,inf,'int16'); phone{k}.train_mfcc{i}=frontend(phone{k}.train_sig{i});%extracting mfcc's
m{k}.e{i}=mean(phone{k}.train_mfcc{i});%each value for m{k}.e{i} is 1x12 array
fclose(fid); end v{k}=mean({m{k}.e{:}});%error undefined sum
end
i make this code and now i want to calculate the mean for m{k}.e{:},namely the mean for each m{k}. for all e{} elements !! any ideas ?? i tried v{k} but its wrong..any help??
Best Answer