MATLAB: Problem with fread,matrix arguments

.pcm fread matrix

i'll need some help here…well i have a folder who's inside there are 8 subfolders with names ('aa','ah','ax' 'eh' 'ih' 'ix' 'ow' 'ux')each subfolder has 60 .pcm files..and i want to read them..here's my code for phoneme 'aa'..the problem is when i write sig(k,i) as a matrix there's an error and i can't fix it..
%mycode
TrainFile=cd('C:\Users\panagiotis\Documents\MATLAB\patreco_project\training');
phonemes={'aa' 'ah' 'ax' 'eh' 'ih' 'ix' 'ow' 'ux' };
cd(phonemes{1});
data=dir('*.pcm');
for k=1:60
for i=1:length(data)
fid=fopen(data(i).name,'r');
sig(k,i)=fread(fid,inf,'int16'); %error
fclose(fid);
end
%note:each .pcm file has different length of data( the 1st pcm is 1×1298,the 2nd 1×890, etc..) namely for each phoneme i want to create a 2-dim matrix for each phoneme with 60 rows and different columns's length..
any help/ideas??
thx in advance

Best Answer

error in line 2 i mean "CAN'T" not "CAN"