Plot time of audio file in milliseconds
Show older comments
Hi there,
I have imported a .wav file into MATLAB, I am plotting this audio file in amplitude/time but I need it to be displayed in milliseconds rather than seconds.
The .wav file is configured in the workspace as data and fs.
The code I am using to plot the file in time is :
>> t=[0:length(data)-1] / fs;
>> plot(t, data);
Many thanks in advance for your time.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Signal Processing Toolbox 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!