Clear Filters
Clear Filters

how can extract data from txt file?

6 views (last 30 days)
GreyHunter
GreyHunter on 6 Oct 2020
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);

Answers (0)

Categories

Find more on Measurements and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!