Retrieve N number of discrete samples from a continuous audio sample

I'm attempting to extract N number of linearly spaced samples of data (i.e. the x and y coordinates) from a continuous graph I made using the audioread function. Here is my code as follows:
[N,fs] = audioread('Piano Middle C.wav');
t=linspace(0,length(N)/fs,length(N));
plot(t,N)

1 comentario

Abbass - what exactly is your question? There are N samples in your wav file so what do you want to retrieve?

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 12 de Mayo de 2020

Comentada:

el 14 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by