I\'m looking for a Matlab method/code that does the following: By providing an a
ID: 2291076 • Letter: I
Question
I'm looking for a Matlab method/code that does the following:
By providing an audio file (.wav format) as an input signal, the method takes a value "k" as an input from the keyboard which represents the percentage of energy preserved from the input audio file at the output, so the method will remove the high frequencies keeping k% of the input audio signal preserved on the output. then it should write the output file (.wav format also) and the cutoff frequency used to preserve at the output k% of the input energy. (low pass filter might be used)
Thank you.
Explanation / Answer
clc clear all close all [y,fs]=audioread('sd.wav'); x=[y(:)]; n=input('enter the level') l=length(x); xmin=min(x); xmax=max(x); d=(xmax-xmin)/(2^n); k=xmin:d:xmax; for i=1:length(k)-1 for j=1:length(x) if k(i)Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.