Clear Filters
Clear Filters

How to design FIR and IIR filter and add data from excel into them?

14 views (last 30 days)
How to design FIR and IIR filter in matlab and insert a set of 800,000 data from excel into them.
  3 Comments
fikri muhili
fikri muhili on 14 Jun 2022
hye. how can i contact u? or can u give me ur email so that i can share the question
BETTY HOI
BETTY HOI on 14 Jun 2022
The goal is to filter the interference from input signal and represent it in z-domain.
I managed to import the excel file and performed fft. data from excel file is amplitude and time.
i have problem with doing convolution whereby i need the impulse response. i use impz( ) and designfilt( ) but i have problem with values needed for designfilt( ). is there any way to calculate the stopband frequency, passband ripple, etc that is required for deisgnfilt( ).
i would appreciate it if you could provide another alternative (if there's any). thankyou.

Sign in to comment.

Answers (1)

Ashutosh Thakur
Ashutosh Thakur on 14 Dec 2023
Hi Mohammad,
Based on the provided information I can understand that you want to implement FIR and IIR filter in MATLAB and provide the input from the excel file.
Please follow these steps in achieving your objective :
  • You can use "readtable" or Import Tool to import the data from the excel file to the MATLAB workspace.
  • Since the variables required are present in the workspace you can easily pass it to the filter you require it to be.
Kindly take reference from the following documentation links in undertsanding the above approach:
I hope it helps you in achieving the objective.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!