Question

Pay Attention Please, it is a MATLAB Problem. Thanks!

2. f(t) 10u(t)-10u(t-10) +5u(t-10)-5u(t -20 Plot this function.

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

Ans)

Using a(t) = 1 for t > 0

a(t-r) = 1 for t >T

%==================MATLAB CODE for plot=========

t=0:0.1:30;

f=10*(t>=0)-10*(t>=10)+5*(t>=10)-5*(t>=20);

plot(t,f)

%================================

Plot obtained

LIVE EDITOR MEW E皐control ▼ 9。33- Aa Normal Run Section GoTo ▼ BIU M Run and Advance Find Text *-- Code- Refactor ▼ Section R

===================================

Add a comment
Know the answer?
Add Answer to:
Pay Attention Please, it is a MATLAB Problem. Thanks! 2. f(t) 10u(t)-10u(t-10) +5u(t-10)-5u(t -20 Plot this...
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 do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks.please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me...

  • Please show all steps. Thanks! Problem C.10 Plot the function y = -2e-0.5tU(t – 2).

    Please show all steps. Thanks! Problem C.10 Plot the function y = -2e-0.5tU(t – 2).

  • Using the basic developed MATLAB signal functions, generate the following sequences and then plot the signal...

    Using the basic developed MATLAB signal functions, generate the following sequences and then plot the signal samples using the stem function. x_1[n] = 3 delta[n + 2] + 2 delta[n] - delta[n - 3] + 5 delta[n - 7], for -5 lessthanorequalto n lessthanorequalto 15. X_2[n] = 10u[n] - 5u[n - 5] - 10u[n - 10] + 5u[n - 15]. Generate the periodic sequence and plot the samples (using the stem function) of cap x[n] = {..., -2, -1, 0,...

  • In matlab please 3. (15 Points) Consider the following function. f(t) = 5e(-31) cos(20) a. Plot...

    In matlab please 3. (15 Points) Consider the following function. f(t) = 5e(-31) cos(20) a. Plot the function for t = 0 to 1 b. Analytically calculate the derivative. C. Calculate the derivative using the diff function d. Calculate the derivative using the gradient function e. In a separate figure, plot the derivatives obtained above in a single new figure (not subplot) using (i) solid blue line for part b, (ii) red dots for part c, and (iii) green o's...

  • 9. MATLAB Problem: Use Matlab to find the convolution y(t) of f(t)2tu(t) and h(t) ut1u(t-1). You ...

    9. MATLAB Problem: Use Matlab to find the convolution y(t) of f(t)2tu(t) and h(t) ut1u(t-1). You should submit a printout of the matlab code as an m-file with comments (using %) explaining the role of each line. You should also submit a plot ofy(t) for-l sts 4. You may find Computer Example C2.4 on page 137 useful EXAMPLE FROM BOOK IS BELOW. System Response to External Input: The Zero-Sta 2.4 QComputer Example C2.4 Find c(t) = f(t) * g(t) for...

  • please solve then upload matlab code Thanks 1. The function f(z, y) (a-x)2 + b(y-12)2 is...

    please solve then upload matlab code Thanks 1. The function f(z, y) (a-x)2 + b(y-12)2 is called Rosenbrock's banana function. It is often used as a benchmarking test for optimization algorithms becatse it is easy to find the minimum by hand but often very difficult to find numerically. Throughout the problem, we will use the values a = 2 and b 10. You can plot this function using the following code: x3:0.1:3; y = -10:0.2:10; Cx,Ymeshgrid(x,y); Z(2-X).2 10* (Y-X. 2)....

  • Provide Matlab Code. with graph. Q.4 Plot the following function f(t)- Plot f(2t-3).

    Provide Matlab Code. with graph. Q.4 Plot the following function f(t)- Plot f(2t-3).

  • To plot a figure of a function y=f(t) in an interval a and b in MATLAB,...

    To plot a figure of a function y=f(t) in an interval a and b in MATLAB, one should find n-1 points of t between a and b and then find the corresponding values to plot the figure. Below shows an example of a sin function in the range of 0 and 1 with 1000 increments, as well as the figure. >> t = 0:0.001:1; >> y = sin(2*pi*2*t); >> figure >> plot(t, y) 0 02 04 06 08 Demonstrate a...

  • Please write and include a matlab code for the following: Given the following differential equation 10?̈+...

    Please write and include a matlab code for the following: Given the following differential equation 10?̈+ 20?̇ + 250? = ?(?) a. Plot response to f(t) = 200sin(4t) b. Plot response to a step f(t) = 200 that starts at t = 0 s and stops at t = 2s; note that the response goes past the 2 seconds of input. Part a.) I need matlab code to generate the plot for 10x''+20x'+250x=200sin(4t) Part b.) I need matlab code to...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in Matlab and show me the code. Thanks. Problem #1: Circuits and linear-systems In the last HW you developed the governing equations for the “Wheatstone”-bridge circuit used extensively in engineering applications (shown below). B R R2 A D G m RA с E The resulting equations were solved for the output voltage and currents using the function: function [V_out, I_vector] =Wheatstone_bridge (v_in, R_vector) In...

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