From 6917aa685c5423f20e7876924dc3f521d7dee15c Mon Sep 17 00:00:00 2001 From: c24leray <camille.lerays@imt-atlantique.net> Date: Fri, 2 May 2025 09:09:34 +0200 Subject: [PATCH] coucou --- SAR.m | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/SAR.m b/SAR.m index 35b5d80..563ecd4 100644 --- a/SAR.m +++ b/SAR.m @@ -1,3 +1,19 @@ +[x,fe]=audioread("C:\Users\camil\Documents\IMT_A\semestre_6\electrical engineering\tp-audio-ee-etudiant-c24leray\src\wav\single_tone_celtic-harp-a3.wav"); + +soundsc(x,fe); +L1 = length(x1) +X1 = fftshift(fft(x1)) +f1 = (-L1/2 : L1/2 - 1)*(fe1/L1) + +figure; +plot(f1, log(abs(X1)),'r'); +title("spectre") +xlabel("fréquence en Hz") +ylabel("log|X(f)|") + + + + [x1,fe1]=audioread("C:\Users\camil\Documents\IMT_A\semestre_6\electrical engineering\tp-audio-ee-etudiant-c24leray\src\wav\single_tone_piano1.wav"); [x2,fe2]=audioread("C:\Users\camil\Documents\IMT_A\semestre_6\electrical engineering\tp-audio-ee-etudiant-c24leray\src\wav\single_tone_piano2.wav"); soundsc(x1,fe1); @@ -20,4 +36,3 @@ plot(f2, log(abs(X2)),'b') title("spectre") xlabel("fréquence en Hz") ylabel("log|X(f)|") -legend(piano1, piano2) -- GitLab