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 can I solve a problem by using MATLAB?

Status
Not open for further replies.

heab

Newbie level 5
Joined
May 9, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
using pi to solve for diagram

Hi, everybody

How can I solve a problem by using MATLAB?

Generate a signal (x[n]) sampled at 8 kHz,
which contains a sum of three sinusoids at frequency of 100 Hz,1,000 Hz, and 2,000 Hz.
Plot this signal for a reasonable number of samples(with MATLAB).

Thank you
 

ddt694

Full Member level 3
Joined
Dec 12, 2002
Messages
170
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,296
Activity points
1,400
matlab generate 100 khz

n=0:80;
ts=1/8000;
y=sin(2*pi*100*n*ts) + sin(2*pi*1000*n*ts) + sin(2*pi*2000*n*ts);
stem(y)[/img]
 

    heab

    Points: 2
    Helpful Answer Positive Rating

heab

Newbie level 5
Joined
May 9, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
plot signal realizations matlab

I have some problem about Multirate Signal Processing.(by using MATLAB)

1.) Design a standard sample rate converter to convert the signal x[n] at sampling rate 8 kHz to y[m] at sampling rate 22 kHz. Put the interpolator first and decimator later. Combine the anti-aliasing filter with the post filter together and use the FIR rectangular window technique to design your filter (use the filter length of 55). Plot
(a) the impulse response of the FIR filter (Figure 1)
(b) the output of the FIR filter (Figure 2)
(c) the output of the sample rate converter that you design (Figure 3). And draw the overall block diagram of your sample rate converter (Figure 4).

2.) Derive and draw the polyphase realization diagram of your FIR filter in conjunction with the interpolator (Figure 5). Use the 11 band polyphase realization. Clearly state the coefficients of each filter. Plot the outputs of polyphase filters 1,2,3 and 4 by using command subplot( Figure 6) and the output of the overall filter (Figure 7) and compare this output with Figure 2.

3.) Draw an efficient decimator realization diagram of the FIR filter in conjunction with the decimator (Figure 8). Here the number of bands in the polyphase diagram should be 8.

Thank you
 

awanis

Junior Member level 1
Joined
Sep 15, 2009
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
malaysia
Activity points
1,387
sample rate convertor , matlab

hai...
ihave a question..
how i can solve the signal from X(n) signal to quantization signal...
can give me the example of instruction in matlab how to do it.. :|
 

karper1986

Member level 2
Joined
Mar 13, 2009
Messages
49
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,715
solve diag() matlab

Hi avanis,
Here is some examples of quantization in matlab:

%garmonic signal
u=sin(0.01:20*pi);
y=quant(u,2^-15);
disp(y);

%randomized signal
u=randn(1E3,1);
y=quant(u,2^-15);

Best regards,
Karper.
 

awanis

Junior Member level 1
Joined
Sep 15, 2009
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
malaysia
Activity points
1,387
i have reply my answer at the DFT title by ganes..
can anybody check and answer to quantize the signal...
im confius..:?:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top