- #1

- 107

- 0

I had a lab assignment in my Linear Systems and Signals class, which said to plot the result of this:

[tex]r[-k - 2] \ast u[k -2][/tex], where [tex]\ast[/tex] represents convolution.

Now, I know the answer, which is 0. I now need to plot it. The way I plotted it, is I did the following:

Code:

```
x = (0:100);
y = 0;
plot (x, y);
```

Of course I get a line on x = 0 which has all values of y as 0, but that's the TRULY right way. I want Matlab to get that answer by itself.

I tried reading some stuff online about discrete time in Matlab, but nothing seems to help. Maybe it's because this is the first time I've ever used Matlab.

If someone could please help me, it would be greatly appreciated.