2. Let x[n] =cos((pi*n)/8) for -16 <= n <= 16 . On the same stem diagram, plot x(n) and x(n- 4). You should use the sigshift function to complete this exercise.
%matlab code
n=-16:16;
x=cos(pi*n/8);
x1=sigshift(x,4);
stem(x)
hold on
stem(x1,'-r')
function [y]=sigshift(x,m)
l=length(x);
y=x;
for i=1:l
if i<=m
y(i)=0;
else
y(i-m)=x(i);
end
end
end

2. Let x[n] =cos((pi*n)/8) for -16 <= n <= 16 . On the same stem diagram,...
x[n]=cos(2*pi*n) x[n]=cos(0.2*pi*n) x[n]=cos(0.25*pi*n) x[n]=cos(0.26*pi*n) x[n]=cos(10*pi*n) x[n]=cos((8/3)*pi*n) those signals are periodic?? and for those signals in Part (a) that are periodic, determine the number of samples per period
x[n]=cos(pi/8 *n^2) is periodic or non and explin it?
(MATLAB) In the same figure plot 7 vertically arranged DT sinusoids x k (m)=cos*2*pi*m/N, m=0,1,...6, using the function subplot(7,1,p).
Entered Answer Preview Result (9/[(piÄ3)*(nA3)])*(16/(piA3)*(mA3)])* [pi*n'sin(pi*n)+2 cos(n*pi)-2 9 16 (πη sin(m) + 2 cos(n7)-2)(nm sin(mm) + 2 cos(mm)-2) incorrect 규 교 The answer above is NOT correct. 1 point) The double Fourier sine-sine series of the function is given by 00 oO m sin( ) sin(mm) where
Consider h(n)=[0.5^n * cos((pi*n)/2)]*u(n) a. find transfer function H[Omega] b. If x(n)= cos((pi*n)/2), find system output y[n] using H(Omega) from part a
Using Matlab: If x(n)=cos(5π n/6) and y(n)=cos(4π n/9), stem plot the sum z(n)=x(n)+y(n) over n=0:100. Write the arguments of the sinusoids as (2π n M/N). By finding the least common multiple of the denominators, determine the period of z(n). Put the period of the sum z(n) in the title of the plot. Stem plot the samples of the first period in blue, the second in red and the remainder in green in your plot.
Results for this submission Entered Answer Preview Result (3/2)+(6/pi)*cos(x) e + cos(2) correct (3/2)+(6/pi)*cos(x)-(2/pi)*cos(3*x) 3 6 st-ce 2 s(3x) correct (3/2)+(6/pi)*cos(x)-(2/pi)*cos(3*x)+(6/5)*pi*cos(5*x) it coule) = _ cou(30) + * cos(52) incorrect A correct f(x) f(x) correct At least one of the answers above is NOT correct. 1 (1 point) (a) Suppose you're given the following Fourier coefficients for a function on the interval (-1,7): a 3 6 6 6 = , ai = –, az = -2,25 = = and 22,...
Need help converting the following code from Matlab into Python: N=2048; fs=4.9; t=0:1/fs:(N-1)/fs; fs1=200; t1=0:1/fs1:(N-1)/fs1; x2=0.5+0.6366.*cos(2.*pi.*t1)+0.1273.*cos(10.*pi.*t1)-0.0909.*cos(14.*pi.*t1); x=0.5+0.6366.*cos(2.*pi.*t)+0.1273.*cos(10.*pi.*t)-0.0909.*cos(14.*pi.*t); X=fftshift(fft(x)); f=linspace(-fs/2,fs/2,N); plot(f,abs(X)./N); xlabel('f'); ylabel('|F(f)|'); title('magnitude spectrum of sampled signal'); x1=ifft(fftshift(X)); figure plot(t(1:100),x1(1:100)); xlabel('t'); ylabel('f(t)'); title('f(t) obtained by inverse transform'); figure plot(t1(1:1000),x2(1:1000)); xlabel('t'); ylabel('f(t)'); title('original f(t)');
MATLAB) In the same figure plot 6 vertically arranged DT sinusoids x k (m)=cos 2*k*pi*m/6, k=0,1,...5, using the function subplot(6,1,p).
2. A system is described by the following difference equation n]1.5y[n0.56y[n -2]+x{n-0.2x{n-] a) Find the transfer function of the system b) Let xn]un]. Compute an analytical expression for the response y[n]. Use Matlab to calculate the coefficients c) Simulate and plot the response using Matlab.(stem plot) Generate 50 points. (Matlab: x ones(1,50));
2. A system is described by the following difference equation n]1.5y[n0.56y[n -2]+x{n-0.2x{n-] a) Find the transfer function of the system b) Let xn]un]. Compute an analytical expression for...