a)Scilab program:
// signals
f1=20;
t=0:0.005:0.1;
A1=2;
X1=A1*sin(2*%pi*f1*t);
figure(1);
subplot(2,1,1);
plot(t,X1);
title( 'Signal 1 ');
xlabel( 't−−>');
ylabel( 'X1(t)−−>');
f2=40;
t=0:0.005:0.1;
A2=4;
X2=A2*sin(2*%pi*f1*t);
subplot(2,1,2);
plot(t,X2);
title( 'Signal 2');
xlabel( 't−−>');
ylabel( 'X2(t)−−>');
b)
To complete one cycle of x1(t), it takes 0.05s
Number of cycles per second=20
Time for one cycle*Number of cycles expected = 0.05* 20 =1s
To complete one cycle of x2(t), it takes 0.025s
Number of cycles per second=40
Time for one cycle*Number of cycles expected = 0.025* 40 =1s
Yes . The frequency of the signals match with the obtained waveforms.
solve using scilab show codes Task 1 Generate a time vector (series) “t' which contains the...
solve using scilab and show codes
Task 1 Generate a time vector (series) 't' which contains the number 0 to 9. i.e 0 st 10 with a step size of 1 . Repeat the experiment with a step size of 0.01. (1.5 marks)
solve using scilab
show the codes
Task 3 Generate the following signals and classify them as periodic or aperiodic. State reasons. (4.5 marks) -3t 1) x(t) = 3e 2) X(t) = 573 sin(51) + cos cos (§ 1) 3) X(t) = 4e+24+ cos cos (++) Task 4 (answer any one of the followings) (4 marks) a) Generate a siren sound, a signal that alternates between four different tones. {Hints: You can apply knowledge gained in 3 tasks above to solve...
Q: please solve using matlab code withe comment 1. Write the Matlab code to generate: x = cos(w1*t) + cos(w2*t); where, w1=7; w2=23; t = [0:0.005:2] 2. Plot the signal using sub plot a. in time domain b. in frequency domain 3) Sample the signal under different sampling conditions: a. Ts<1/2fm b. Ts=1/2fm c. Ts>1/2fm 4). Multiple plot: the signal sampled under sampling condition and the signal x a. in time domain b. in frequency domain c. Label and Title...
One of the most important classes of time dependent signals are periodic signals. Periodic signals satisfy tho following signal equations, x(t) X(t) x(t+nt) for n 2,3. The periodic signals to be observed in this laboratory assignment are shown below. In all the examples A represents the amplitude of the signal and may be given as the measurement from 0 to the peak value A, Apk or can be given as the measurement between A and -A which defines a peak-to-peak...
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...
please code on MATHLAB and show graph thank you in advance!
Generate the following function y1(t)=2* sin (2*pi* 1 *t)+4*sin(2*pi*2*t)+3*sin(2*pi*4*t) y2(t)=2*cos(2*pi*1*t)+4*cos(2*pi*2*t)+3*cos(2*pi*4*t) First, required by sampling theorem, the step size of t (delta t) has to be smaller than a value. Figure out this value and set the delta t at least 3 times smaller than this value and calculated y1(t) and y2(t). Increase the step size (delta t) and recalculate y1(t) and y2(t). See the difference. Calculate Fourier Transform of...
Verify the following using MATLAB
2) (a) Consider the following function f(t)=e"" sinwt u (t (1) .... Write the formula for Laplace transform. L[f)]=F(6) F(6))e"d Where f(t is the function in time domain. F(s) is the function in frequency domain Apply Laplace transform to equation 1. Le sin cot u()]F(s) Consider, f() sin wtu(t). From the frequency shifting theorem, L(e"f()F(s+a) (2) Apply Laplace transform to f(t). F,(s)sin ot u (t)e" "dt Define the step function, u(t u(t)= 1 fort >0...
Solution required in MATLAB
1. Convolution and Discrete-Time Fourier Series (DTFS) (a) Generate a periodic signal r2[n] with the fundamental period N ralla-sin(2nn/ İ0) + sin(2m, 2 ) + sin(2nn/30) for 0 < n < N-1 Find the fundamental frequency Ω0-2, N, with the fundamental period N. (b) Generate a periodic signal h2[n] with the fundamental period N haln] = (1/2)", for 0 < n < N-1 (e) Using the com ftuction n Matab, compute the compvolution (d) Using the...
(a) Determine the Fourier transform of x(t) 26(t-1)-6(t-3) (b) Compute the convolution sum of the following signals, (6%) [696] (c) The Fourier transform of a continuous-time signal a(t) is given below. Determine the [696] total energy of (t) 4 sin w (d) Determine the DC value and the average power of the following periodic signal. (6%) 0.5 0.5 (e) Determine the Nyquist rate for the following signal. (6%) x(t) = [1-0.78 cos(50nt + π/4)]2. (f) Sketch the frequency spectrum of...
LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...