Retrieve N number of discrete samples from a continuous audio sample

4 Ansichten (letzte 30 Tage)
Abbass Sleiman
Abbass Sleiman am 12 Mai 2020
Kommentiert: Geoff Hayes am 14 Mai 2020
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 Kommentar
Geoff Hayes
Geoff Hayes am 14 Mai 2020
Abbass - what exactly is your question? There are N samples in your wav file so what do you want to retrieve?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by