Kássio Rezende
Newbie level 2
- Joined
- May 14, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 12
Hi everyone
I started dsp this semester and I need some help. I have to design a custom filter from a given signal, that represents this filter in frequency domain. To get started (as the book says: http://www.dspguide.com/CH17.PDF), I have to "convert the frequency domain to rectangular form". The problem is, I don't know exactly what this means. I'm using Freemat(http://freemat.sourceforge.net/#download) to write the code. This is what i have so far:
Hope you can help.
Farewell!
I started dsp this semester and I need some help. I have to design a custom filter from a given signal, that represents this filter in frequency domain. To get started (as the book says: http://www.dspguide.com/CH17.PDF), I have to "convert the frequency domain to rectangular form". The problem is, I don't know exactly what this means. I'm using Freemat(http://freemat.sourceforge.net/#download) to write the code. This is what i have so far:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 //This is not C, I'm using Freemat// clear all; clc; test=0:1024; signal_filter = [0:1024]; a=linspace(0,3*pi,205); b=0.25*sin(a)+0.5; signal_filter(1:205)=b; c=linspace(0,195,196); d=(2/195)*c+0.5; signal_filter(206:400)=d(2:196); signal_filter(401:554)=1; signal_filter(555:595)=0; signal_filter(596:800)=1; e=-224:0; f=((1-.10)/(224*224))*e.*e + .10; signal_filter(801:1025)=f(1:225); plot(test,signal_filter); xlim([0, 1024]);
Hope you can help.
Farewell!
Last edited: