Hi Nidhi,
Based on my understanding, you would like to know the fastest way to implement fractional delay in MATLAB.
The choice between using the inbuilt function "fracdelay" and a self-designed FIR filter depends on the specific requirements of the application. Here’s a brief comparison of the two approaches:
- Inbuilt Function:
a. "fracdelay": MATLAB provides inbuilt functions such as "fracdelay" for fractional delay operations.
b. “designFracDelayFIR”: This function offers a convenient and optimized way to design fractional delay FIR filters with specified delay, filter length or combined bandwidth, making it a good choice for achieving minimum computational time.
2. FIR Filter Design: Designing an FIR filter gives the user access to all filter specifications, which can be tailored for specific needs. If the use of the inbuilt function is still not meeting your requirements for faster execution, you can implement an FIR filter with fine control over filter coefficients and structure.
The MATLAB’s inbuilt functions are designed to function as fastest and most efficient methods. If these functions are not able to meet the requirement standards of efficiency, you can also try to build a FIR filter by designing the filter coefficients and structure.
Please refer to below documentation for more details:
- “fracdelay”: https://www.mathworks.com/help/dsp/ref/fdesign.fracdelay.html
- “designFracDelayFIR”: https://www.mathworks.com/help/dsp/ref/designfracdelayfir.html
I hope this helps.
Regards
Binaya