## using convolution with matlab

on 21 Sep 2012

### Wayne King (view profile)

x[n]=n^3-n^2, 0<n<3

h[n]=1/n, -2<n<-1

y[n] is the convolution of x[n] and h[n]

how can i compute y[n] ?

## Products

No products are associated with this question.

### Wayne King (view profile)

on 21 Sep 2012

With all due respect, I think you need to take some time to read the MATLAB documentation.

```    n = 0:3;
x=n.^3-n.^2;
m=[-2:-1];
h=1./m;
y = conv(x,h)```

Passband Modulation

### Passband Modulation (view profile)

on 21 Sep 2012

i did try, but i am not a good learner somehow...

anyway, thanks for ur kind replies. it really helps a lot!

Wayne King

### Wayne King (view profile)

on 21 Sep 2012

Passband Modulation

on 21 Sep 2012

ok, just done!

### Wayne King (view profile)

on 21 Sep 2012

Use the function conv()

See the help for conv()

#### 1 Comment

Passband Modulation

### Passband Modulation (view profile)

on 21 Sep 2012

ive tried, but it does not work at all.

``` n=[0:3];
x=n^3-n^2```
``` m=[-2:-1];
h=1/m```
` y= conv(x,h)`

#### Join the 15-year community celebration.

Play games and win prizes!

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi