plotting sound wave

This commit is contained in:
Loic Delattre 2023-03-24 08:47:58 +01:00
parent 11d30a9522
commit df9f821f8a
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -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);