Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to simulate a tapped delay line digital filter in Matlab?

Status
Not open for further replies.

m_pourfathi

Full Member level 4
Joined
Feb 7, 2008
Messages
200
Helped
17
Reputation
34
Reaction score
3
Trophy points
1,298
Activity points
2,579
Hi all,

I have a tapped delay line digital filter. I have the filter coefficients. I need to simulate it in matlab. how can I do this? I need a random input.
regards,

M
 

Re: filter simulation

m_pourfathi said:
Hi all,

I have a tapped delay line digital filter. I have the filter coefficients. I need to simulate it in matlab. how can I do this? I need a random input.
regards,

M

You can find in the Matlab's library a random signal generator.
 

Re: filter simulation

actually my problem is how to define a tapped delay line in matlab? I need an m-file. if anyone can kindly send a sample code that'll be really helpful. thanks
 

Re: filter simulation

I thougth you are using simulink.
Matlab has a random function that you can use it directly.( Generaly used to introduce noise).
Google it and you'll find a lot of exemples !
 

Re: filter simulation

Hi m_pourfathi, my answer most probably will not meet what you need, but let me answer;
matlab has a function called "filter", if you have your filter coefficients as;
f_c = [ 0.7 1 2 4 0.3];
then create a random input like;
i_p = randn(1,100);
then filter the random input through the filter and get the output;
o_p = filter(f_c,1, i_p);
I hope it helps,
 
Re: filter simulation

yeah that was pretty much what I needed ;) I've used it before now you tell me. it's been a while I haven't used matlab. thanks for reminding me the formula ;)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top