how can extract data from txt file?

1 次查看(过去 30 天)
GreyHunter
GreyHunter 2020-10-6
I am trying to read a specific name from the text file which correspond to mseconds( for example Jim and John occurances) and depends of the timing correspond to the name I would like to extract an audio signal but only the specified mseconds which are read from the txt file.
my current code:
filename= 'test.txt';
[y, Fs]= audioread(filename);
cutData= y(((Fs*(652-1))+1:Fs*(767-1)/2-10,:);
plot(linspace(0.652,0.767,length(cutData)),cutData);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Measurements and Feature Extraction 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by