i am just a matlab beginner.
x[n]=2cos(0.2*pi*n) with a length of N =100 , that is, ,0<N<99 plotted
clear all n=[0:99]; x=2*cos(0.2*pi*n); stem(n,x); legend('x[n]'); title('Sequence of 2*cos(0.2*pi*n)'); xlabel('n'); ylabel('x[n]'); axis([0 99 -2 2]);
how to use MATLAB to compute the mean, and energy and power of x[n]given mean=x, energy=Ex and power=Px.
Best Answer