Question

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 exp

57%, 13:23 Task 2.2 Let X(t) = A sin(217ft) where A= Amplitude Frequency E-Time a) Create the signals X (t) = A, sin(26ft) an


solve using scilab
show codes

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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)−−>');

Signal 1 2 1 <--(0) IX -1 2 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 tー-> Signal 2 4 2 X2(t)> -4 0 0.01 0.02 0.03 0

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.

Add a comment
Know the answer?
Add Answer to:
solve using scilab show codes Task 1 Generate a time vector (series) “t' which contains the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • solve using scilab and show codes Task 1 Generate a time vector (series) 't' which contains...

    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...

    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...

    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 b...

    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...

    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*...

    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)...

    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]...

    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 bel...

    (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...

  • 1. Create the following signals, f1, f2 in time domain. t = 0 to 1 second....

    1. Create the following signals, f1, f2 in time domain. t = 0 to 1 second. f1(t) = 8 sin (2 *pi*80*t); f2(t) = 4 cos (2*pi*240*t) Define any assumptions you make to generate the signals. 2. Plot the two graphs as sub plots with appropriate lables in x axis (time), y axis, title etc. 3. Generate the following signal f3 = f1 + f2; 4. Plot as sub plot in (2). 5. Compute the fourier transform of this signal,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT