When I run plot it doesn't show my figure
1 次查看(过去 30 天)
显示 更早的评论
Hello ,
I have perfome amplitude normalization on my audio file.
I wrote the commade plot() to see the result but nothing appreard.
Also I would like to hear the modified audio file but I'm getting an error.
Please find bellow to code.
[samples,fs] = audioread ('LastDance.wav' );
audiowrite('LastDance.wav', samples,fs);
% pre-processing second part downsampling
S1 = resample(fs,22050,44100); % downsample from 44100 to 22050
S1peakvalue= max (abs (S1)) % this commade help us find which is the biggest value on S1
S1_norm = (1/S1peakvalue)*S1 % we normalize audio file
figure
plot(S1_norm);
sound(samples,S1_norm);
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!