MATLAB:
clc;close all;clear all;
T=4*(10^(-3))
T1=2*(10^(-3))
t=0:T/200:T
x=(t<=T1)
subplot(221)
plot(t,x,'m')
title('Rectangular function')
xlabel('t')
ylabel('x(t)')
fs=8000
Ts=1/fs
n=0:1:T/Ts
x=(n<=T1/Ts)
subplot(222)
stem(n,x,'b')
title('Sampled Rectangular function')
xlabel('n')
ylabel('x(n)')
X=fft(x)
N=length(n)
f=0:fs/(2*(N-1)):fs/2
subplot(223)
stem(f,abs(X),'r')
hold on
plot(f,abs(X),'b--')
xlabel('f')
ylabel('|X(f)|')
title('Amplitude spectrum')
hold off
Problem 2 (Spectrum of a rectangular signal): In this problem, the amplitude spectrum of the signal 1 or Ot 2 ms x(t)- 0 otherwise is to be analysed (b) Numerical calculation of the spectrum: (i) Us...
Given an energy signal x(t) = (t-5T)e-t-T) , where T-0.1 compute its energy spectrum density in Matlab 1. use two different methods to a. Get its spectrum using Fourier transformation, follovfed by the squaring its amplitude. Plot its Fourier transformation and its energy spectrum density. Get its autocorrelation function, followed by its Fourier transformation. Plot its autocorrelation function and its energy spectrum density. b. 2. In a multipath channel, the received signal y (t) x(t) 0.15x(t -6T) +0.09x(t 10.5T), plot...
Amplitude=3; fs=8000; n=0:399; t=0:1/fs: n*1/fs-1/fs; signal=3+3*cos(2*pi*1100*t)+3*cos(2*pi*2200*t)+3*cos(2*pi*3300*t); fftSignal= fft(signal); fftSignal=f ftshift (fftSignal); f=fs/2*linspace(-1,1,fs); plot(f,abs(fftsignal); xlabel('Frequency(Hz)’) ylabel('amplitude(v)') title('Spectral domain') plz code above using For ..End loop to archive the same results.
Program from problem 1: (Using MATLAB)
% Sampling frequency and sampling period
fs = 10000;
ts = 1/fs;
% Number of samples, assume 1000 samples
l = 1000;
t = 0:1:l-1;
t = t.*ts; % Convert the sample index into time for generation and
plotting of signal
% Frequency and amplitude of the sensor
f1 = 110;
a1 = 1.0;
% Frequency and amplitude of the power grid noise
f2 = 60;
a2 = 0.7;
% Generating the sinusoidal waves...
Problem (3) a) A periodic square wave signal x(t) is shown below, it is required to answer the below questions: x(t) 1. What is the period and the duration of such a signal? 2. Determine the fundamental frequency. 3. Calculate the Trigonometric Fourier Series and sketch the amplitude spectrum and phase spectrum of the signal x(t) for the first 5 harmonics. b) Find the Continuous Time Fourier Series (CTFS) and Continuous Time Fourier Transform (CTFT) of the following periodic signals...
Problem 31: (34 points) 1. (10 points) A pulse width modulated (PWM) signal fPwM(t) in Figure 2. The symbol D represents a duty cycle, a number between zero and one. Determine the compact trigonometric Fourier series coefficients (Co C,11 %) of the signal f(t). 2. (10 points) One use of PWM is to generate variable DC voltages. While the PWM signal is not DC, you should be able to see from your results in part 1 that it hss a...
Can you please help me answer Task 2.b?
Please show all work.
fs=44100; no_pts=8192;
t=([0:no_pts-1]')/fs;
y1=sin(2*pi*1000*t);
figure;
plot(t,y1);
xlabel('t (second)')
ylabel('y(t)')
axis([0,.004,-1.2,1.2]) % constrain axis so you can actually see
the wave
sound(y1,fs); % play sound using windows driver.
%%
% Check the frequency domain signal. fr is the frequency vector and
f1 is the magnitude of F{y1}.
fr=([0:no_pts-1]')/no_pts*fs; %in Hz
fr=fr(1:no_pts/2); % single-sided spectrum
f1=abs(fft(y1)); % compute fft
f1=f1(1:no_pts/2)/fs;
%%
% F is the continuous time Fourier. (See derivation...
Problem #1. Topics: Z Transform Find the Z transform of: x[n]=-(0.9 )n-2u-n+5] X(Z) Problem #2. Topics: Filter Design, Effective Time Constant Design a causal 2nd order, normalized, stable Peak Filter centered at fo 1000Hz. Use only two conjugate poles and two zeros at the origin. The system is to be sampled at Fs- 8000Hz. The duration of the transient should be as close as possible to teft 7.5 ms. The transient is assumed to end when the largest pole elevated...
here is the solution for the question but i need someone help
to understand part b please.
ф1(t) 2(t) 0. -1 Figure 7: Set of orthonormal basis functions in Problem 4 The signals si(t) and s2(t) are given by 201 (t) +dy(t) s2(t) h2(t) hi(t) (a) Design and draw the matched filter for the system using the above orthonormal basis functions to minimize the BER Result is in Fig. 8. (b) Design and draw the receiver for the system using...