Hi, Thank you very much for the answer. but,should I change the length of the both 'wave'files if the two audio files have different recording times? does it change NFFT,Y and f as well?
Method to plot two audio files in the same graph of (amplitude Vs. Frequency)
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to plot two audio files in one graph to compare the difference in the frequencies. One of the the audio files has background noise, whilst the other audio file has got background+useful sound. I want to determine the frequencies which are not present in the background.
The code that I have plots only for audio file. I want to overlap both audio files into one graph.
I have attached the two audio files and the code.
Respuestas (1)
Aditya Salveru
el 11 de Mayo de 2018
Editada: Aditya Salveru
el 15 de Mayo de 2018
Hi Harindu,
You can plot the frequency spectra of both the signals on the same graph by using the command.
hold on
I have done that and attached the code and output. I have added the legend also for your reference.
Hope it helps.
*please change the filenames accordingly.
0 comentarios
Ver también
Categorías
Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!