Question

For all the requested figures below, use a time resolution of 10ms for your time axis and plot in the range t-10,101. Matlab hint for time axis: t = 20.01:10. Remember your script should be self-sufficient and run without any errors to receive any points. Question 1. You have already computed the impulse response h(t) for the following system (1) in your previous homework assignment. Find and plot the output y(t) of the system (1), given the input signal x(t) provided below. Please do not forget to label and mark all the necessary information on the figure. x(t) [u(t 2) -u(t - 4)] Hint: Use built-in Matlab function conv() for convolution. Follow the link for documentation regarding its use: https://www.mathworks.com/help/matlab/ref/conv.html . A short video demonstrating its use will also be provided. Please do not forget about the time axis requirements set on the top of this page. Plot all the values in the required time axis [0:0.01:10] and ONLY the values in the required time axis. You WILL lose points if you do not follow these instructions. Just to give you an example: 1) 2) 3) 4) You will lose points if you plot the signal for t = [05] You will lose points if you plot the signal for t = [0,15] You will lose points if you dont label your axes properly. You will lose points if you plot any signal other than the one requested on the same figure.

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

MATLAB CODE:

t=0:0.01:10;

x1 = t>=2;

x2 = t>=4;

us=x1-x2;

h=exp(-t)-exp(-2*t);

y=conv(h,us);

plot(y);

grid();

xlabel('t');

ylabel('y(t)')

Octave Online: Free Interface compatible with MATLAB - Google Chrome E a t4x Fri Mar 2 2018 6:03:54 PMashwinee eElectrical En

Add a comment
Know the answer?
Add Answer to:
For all the requested figures below, use a time resolution of 10ms for your time axis...
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
  • Please read the instructions carefully and show me the matlab code in detail and the graph...

    Please read the instructions carefully and show me the matlab code in detail and the graph For all the questions below, whenever necessary, use a time resolution of 10ms for your time axis and plot in the range t 10,10]. Matlab hint for time axis: t [0:0.01:101 Remember your script should be self-sufficient and run without any errors to receive any points. Question 1. Find the impulse response h(t) for the LTIC system (1) provided below, using Matlab's built in...

  • use MATLAB and PLZ comment the code so that it is easy to understand Implement the...

    use MATLAB and PLZ comment the code so that it is easy to understand Implement the following series of sinusoidal signals in MATLAB: 1 sin(kt) where N 30 k=1 x(t) k 1 Write a MATLAB script which does the following steps First define and plot signal sin(t) for 0 St s 3Twhere T is the fundamental period of this signal The signal you just implemented is x(t) with N 1 a. Then modify your code to be able to define...

  • For Problems (9-10), use the continuous-time system depicted below which converts the input signal X(t) into...

    For Problems (9-10), use the continuous-time system depicted below which converts the input signal X(t) into the corresponding output signal y(t) = {x()} = 10 x(t) u(t - 3). system y(t) = $ { x(t) } = 10 x(t) · u(t – 3). (9) (10 points) (a) Compute the formula for the Ramp Response, yramp(t) = { r(t)}. (b) Plot the Ramp Response. Label both axes. Give key values of time and amplitude. (10) (10 points) (a) Compute the formula...

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

    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) Use Matlab to generate and plot a vector containing the sample values of the rectangular signal defined in (2) sampled at f 8kHz. Choose the number N of sample values so that it is a power of 2 and that the signal duration is at...

  • Now use MATLAB to generate and plot 15seconds of this signal in the time-domain.Use the fft()...

    Now use MATLAB to generate and plot 15seconds of this signal in the time-domain.Use the fft() function to find the fourier transform of this signal and plot its magnitude spectrum School of Engineering Task 3 - The Fourier Transform: Scaling property Exercise: Let's take a look now at using the Fourier transform on aperiodic signals. Consider the real exponential signal from the discharging capacitor in tas 3 of laboratory 1 which was found to be: You(t)=e"u(t) Begin by calculating manually...

  • Need help with A-C HWP 06.03: A "parabolically oscillating voltage of half-period T" is defined by:...

    Need help with A-C HWP 06.03: A "parabolically oscillating voltage of half-period T" is defined by: o)-A(2) V(t) = A if t falls into the so-called "nth period interval", defined by: where n is an integer Note that for any given time t, there is always exactly only one integer n so that t falls into the nth period interval. The nth period intervals cover the entire real t-axis contiguously and without overlap, for n - 0,1, 2, +3 (a)...

  • I ONLY NEED B AND C HWP 06.03: A "parabolically oscillating voltage of half-period T" is...

    I ONLY NEED B AND C HWP 06.03: A "parabolically oscillating voltage of half-period T" is defined by: o)-A(2) V(t) = A if t falls into the so-called "nth period interval", defined by: where n is an integer Note that for any given time t, there is always exactly only one integer n so that t falls into the nth period interval. The nth period intervals cover the entire real t-axis contiguously and without overlap, for n - 0,1, 2,...

  • X(s) U(s) s2+ 10s+625 625 b. Plot/find the time response of this system using MATLAB when...

    X(s) U(s) s2+ 10s+625 625 b. Plot/find the time response of this system using MATLAB when subjected to the input signal in Figure 2. Assume t -O, t2 -10-9, and A - 10 Hint: What can the input signal be approximated as? Use the approximation. Plot the response for at least 1 second. 1) Provide the plot. You do not need to print an answer to the hint. 0 Figure 2. Input u(t) c. Redo part b using the transfer...

  • Its related to MATLAB Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of...

    Its related to MATLAB Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of the followings. a >>t0:0.001:1; >plot (t, x_t) b. Generate a discrete-time signal x[n] = (1/4)(u[n]-u[n-4). You may use the part of the followings >>a_n-ones (1, 4) s> b_nzeros (1, 7) >> stem(n, x n) Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of the followings. a >>t0:0.001:1; >plot (t,...

  • The purpose of this problem is to become familiar with the use of MATLAB. Consider the...

    The purpose of this problem is to become familiar with the use of MATLAB. Consider the continuous-time function x(t) 2e0.5sin(87t)u(t), where u(t) is the unit step function. a) (10 points) Design a MATLAB routine to plot x(t) from t -5 to t = 5 using 10, 100, and 1000 equally spaced samples. The following MATLAB code fragment suggests how this 11. can be done (using 1000 equally spaced samples). Note that the function provided by MATLAB, but can be easily...

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
ADVERTISEMENT