(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

A DT system has the unit response h[n] = (0.2(1.3)^n)u[n]. You then input x[n] = sin(n*pi/2)u[n]. Find the convolution.

2. Relevant equations

None.

3. The attempt at a solution

>> n = 0:30;

>> h = 0.2*(1.3).^n;

>> x = sin(n*pi/2);

>> s = conv(h,x);

I left out u[n] because we know that u[n] = 1 whenever n >= 0 and 0 when n < 0. So, if I am correct, it is just multiplying the input by 1, if n >=0.

This should be right, just wanted to verify.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab Code for Convolution is this right?

Loading...

Similar Threads - Matlab Code Convolution | Date |
---|---|

Matlab Coding angular spectrum of waves in a fluid | Today at 7:30 AM |

Matlab MATLab: Not enough inputs for nlinfit | Nov 16, 2017 |

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

Small matlab code not working. Why ? | Sep 16, 2017 |

**Physics Forums - The Fusion of Science and Community**