plotting sound wave
This commit is contained in:
parent
11d30a9522
commit
df9f821f8a
BIN
sound/output.wav
BIN
sound/output.wav
Binary file not shown.
|
|
@ -3,4 +3,9 @@ close all
|
|||
clc
|
||||
|
||||
[y, fs] = audioread("sound/modulator22.wav");
|
||||
audiowrite("sound/output.wav", y, fs/2);
|
||||
t = [0:1/fs:(length(y)-1)/fs];%%in seconds
|
||||
plot(t, y);
|
||||
title ("Sound Wave");
|
||||
xlabel ("time (s)");
|
||||
ylabel ("Amplitude (u)");
|
||||
%audiowrite("sound/output.wav", y, fs*2);
|
||||
Loading…
Reference in New Issue