Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is for Matlab: can you help with both problems 2 and 3 please? I know it\'s

ID: 2079375 • Letter: T

Question

This is for Matlab:
can you help with both problems 2 and 3 please? I know it's simple but just can't figure it out

time-shift u[n-dl. In the the printouts, indicate which one is ulnl and which one is uln-dl, and and me other is the what is the value of d? Using the statement x (zeros (i,N), ones (1,M+1)]; and choosing suitable vector k, display the graphics of ulnl and un-5] for -10sns20, respectively. Print your codes and the output figures. 3. Let the signal xInl 7cos (0.1n)+cos (0.95n). Print the graphics ofxln] and xIn 20] for -40 n 80, respectively hint: what will happen if you run cos(0.1*k) for k l-40:80l? Part B. Convolution and Simple LTI Systems l n the command window type "help conv" and press lenterl. Read the information displayed. 2. Consider the moving average system h l I,l,l,l,Il/5. If the input signal is then the

Explanation / Answer

2)

%Program 2:Autocorrelation of a rectangular sequence.
clc;
close all;
N=10;
M=20;
k=-N:M;
%Generate the square squence
x=[zeros(1,N),ones(1,M+1)];
subplot(2,1,1);
stem(k,x);
xlabel('n');
ylabel('u(n)');

k=-(N-5):M+5;
subplot(2,1,2);
stem(k,x);
xlabel('n');
ylabel('u(n-5)');


3)

clc;
close all;
N=40;
M=80;
n=-N:M;
%Generate cosine sequence
x=7*cos(0.1*n) + cos(0.95*n);
subplot(2,1,1);
stem(n,x);
xlabel('n');
ylabel('cos(n)');

n=-(N):M;
x=7*cos(0.1*[n-5]) + cos(0.95*[n-5]);
subplot(2,1,2);
stem(n,x);
xlabel('n');
ylabel('cos(n-5)');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote