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.

FIR FIlTER DESIGN using fir1 funtion in matlab

Status
Not open for further replies.

celhedo

Newbie level 5
Joined
Jun 10, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
singapore
Activity points
1,336
Hi,
I've been working on designing an fir filter,with the following specifications:
Sampling freq:10K
passbannd range=0-2MHz
stopband range=4k-6khz.

I've been trying to use the fir1 function,but the message is frequency should be from 0 to 1.

How do i solve this?
Thanks.
 

Dear define Order of filter.
I think MATLAB is a good teacher also use MATLAB help.
cutt of frequency is defined as
(cutt off freq/sampling rate)
try this in your function defination
 

I assume your passband is 0-2kHz and not 2MHz.
[0, 1] is referring to a normalized frequency which is [DC Fsample/2], so your Matlab function for fir1 would be..
B = fir1(order, 2e3/(10e3/2));
 
Or use the filter and design analysis toolbox in matlab. Type fdatool in matlab.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top