read multiple .pcm files from a directory
이전 댓글 표시
hey guys,i need some help here,well i have a main folder and there's inside him 2 subfolders each of it has 60 .pcm files..i have to open and read them using this code:
fid=fopen('filename.pcm','r');
sig=fread(fid,inf,'int16');
fclose(fid);
i use this command x=dir('mydirectory\*.pcm') and then i write
for i=1:length(x)
y=x(i).name
end
the problem is when after this for loop write the command
fid=fopen('y','r')
matlab doesn't accept y as for my filename!any ideas???
thx in advance
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PCM에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!