hi
first you need to define n , as a matrix
n= 1 : 1 :128 ;
and then write down the equations
and then if you want to plot the two signals in the same graph you use:
hi
first you need to define n , as a matrix
n= 1 : 1 :128 ;
and then write down the equations
and then if you want to plot the two signals in the same graph you use:
If you used subplot (3,1,1) this will divide the figure window into three parts, so , you have to use subplot (2,1,1) or equivalently (211) as show in the following code: