Audio signal processing/audioread/fft
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
THIS IS NOT FOR HOMEWORK OR GRADING
"Create a software tool for audio signal modulation. The signal read from the audio file should be modulated by the sine wave of the specified frequency. The software interface must allow the user to select the audio file and the sine wave frequency. The program should provide time and spectrum diagrams of the initial and modulated signals as a result of the work performed. The user should be able to listen to both signals."
My question is how to get frequency graph/domain from [y,Fs] = audioread(file)
[file,path] = uigetfile('*.*');
if isequal(file,0)
disp('User selected Cancel');
else
disp(['User selected ', fullfile(path,file)]);
end
[y,Fs] = audioread(file);
% time domain
t=([0:length(y)-1])/Fs;
subplot(211);
plot(t,y)
title('Graph of audio signal')
grid on
xlabel('Time')
ylabel('Amplitude')
0 Kommentare
Antworten (1)
Ameer Hamza
am 17 Mai 2020
See fft(), especially check this example: https://www.mathworks.com/help/releases/R2020a/matlab/ref/fft.html#buuutyt-9
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Signal Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!