How do I make the x-axis of a signal to represent time?
6 次查看(过去 30 天)
显示 更早的评论
So I'm trying to plot a graph with the time as the x-axis, but I'm having a hard time trying to.
This is my code so far:
load handel.mat
filename = 'handel.wav';
audiowrite(filename,y,Fs);
clear y Fs
[y,Fs] = audioread('handel.wav');
plot(y);
xlabel 'Time'
ylabel 'Audio signal'
I'm still new to MATLAB so it's still not easy for me.
Thanks in advance
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!