# How can I solve a problem by using MATLAB?

Status
Not open for further replies.

#### heab

##### Newbie level 5 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 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 [/img]

### heab

Points: 2
Helpful Answer Positive Rating

#### heab

##### Newbie level 5 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 sample rate convertor , matlab

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

#### Communications_Engineer

##### Advanced Member level 3 how to draw pv diagram with matlab

if you know the algo for quantization, create a function file for it and use it

#### karper1986

##### Member level 2 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 ;

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

Best regards,
Karper.

#### awanis

##### Junior Member level 1 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.

Replies
0
Views
934
Replies
0
Views
2K
Replies
11
Views
4K
Replies
0
Views
1K
Replies
2
Views
1K