MATLAB: Use MATLAB to write a code (m-file) to sample the signal:

#need code

: x(t) = 4cos(200πt), at sampling frequency equal to 400 Hz and then to plot the sampled signal x[n], consider 10 cycles of x(t). …………………………………………………………………………………………

Best Answer

t=0:1/400:.1;
x=4*cos(200*pi*t);
plot(t,x);