I have never used matlab before and just started working on my first exercise and don't have a clue what I am doing. I would appreciate any pointers to let me know if what I am doing is write or wrong.
The Question:
Generate and plot the following sequence. In each case the horizontal $(n)$ axis should extend only over the range indicated and should be labels accordingly. Each sequence should be displayed as a discrete-time signal using stem.
$x_1[n]=0.9\delta[n-5] \qquad 1\le n \le 20$
My answer:
EDU>> L=20;
EDU>> nn=0.9:(L-5);
EDU>> stem(nn);

Is this even remotely correct?
Presumably $\delta$ refers to the Dirac delta function.
Try