Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Microsoft Word - Document1 Microsoft Word - Document1

1 answer below »
Microsoft Word - Document1

Microsoft Word - Document1
Answered Same Day Apr 21, 2021

Solution

Kshitij answered on Apr 28 2021
136 Votes
refiles/Q2Solution.m
clear all
A=2;
ii=2
t=-10*pi:0.001:10*pi;
y=-A*(t/(10*pi)-1).*(t>0)+A*(t/(10*pi)+1).*(t<0);
plot(t,y); grid on
%t1=-10:0.01:10;
U=2*(t<5)-2*(t<=-5);
H=2*t.*(t<10*pi)-2*t.*(t<-10*pi);
t1=-10*pi:0.01:0;
Y=cumtrapz(t,U);
figure(),
plot(t,U);
xlabel('t');
ylabel('The Square Wave')
% % Low pass filter is desinged to recover the orignal singla
% % by convoluling it with square with
%
% Signal=conv(y/148,y/148);
% figure(),
% plot(Signal)
efiles/Q4Solution.m
% Question 3: Solution
N=0:100; % Number of points
xn=cos(2*pi*N/7);
% The signal downsampled at factor of 2
z2n=downsample(xn,2);
% The graph of the two signals
stem(N,xn,'b','LineWidth',2); grid on
xlabel('n');ylabel('original signal x(n)');
hold on
stem(0:numel(N)/2,z2n,'--r','LineWidth',2); grid on
xlabel('n');ylabel('downsampled signal at factor 2 x(2n)');
legend('The Signal x(n)','Dwonsample signal y(n)=x(2n)');
% Upsamplign the given signal
figure(),
y=upsample(xn,2);
stem(N,xn,'b','LineWidth',2); grid on
xlabel('n');ylabel('original signal x(n)');
hold on
stem(0:length(y)-1,y,'--r','LineWidth',2); grid on
xlabel('n');ylabel('Upsampled signal at factor 2 x(n/2)');
legend('The Signal x(n)','Upsample signal y(n)=x(n/2)');
xlim([0 length(y)]);
hold on
efiles/Q5Solution.m
clear all, clc
Ts=1/15;
n=40;
for...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here