x[n]=n if 0<= n <=10 else x[n]=0;
I am able to plot x[n+3] and x[n-3] using stem. but I need to sum these two signals.During my trials I can t overcome the problem of negative indices.Is there anyway to do
y[n]= x[n+3]+x[n-3] ?
In similar topics only right shift which is not causing negative indices has been answered.
MATLAB requires you to have each logic case stored uniquely. The way you'd write it is probably:
Combining it into one longer expression:
Wouldn't work, and would always return true.