Question

1. a) Use MATLAB or Excel to create a Bode plot of the transfer function G(S) +0.5 0.5 s 1.0. for 0.0 1 a) 100 b) Discretize the transfer function using a backwards difference (Euler) transformation. Write a routine in MATLAB or Excel to calculate the output of the transfer function given an input signal. Use your routine to calculate the outputs for the following sinusoidal inputs (1-sin ?): Case | .0 1.0s | a) (Step size for discretization 2 0.50.1 sec 3 5.00.01 sec Plot four cycles of input and output signals vs. time and calculate the magnitude (in dB) of the output to input ratio and the phase shift (in degrees) of the output relative to the input. Plot these results on the Bode plot from part a). Be sure to run enough cycles for the transient response to die out

I know how to do part a but i really need help with part B. Thanks

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

Command Window >> % NAME tf (num, den) > num 0.5 num 0. 5000 a l 2 b- 0.5 >NAME-tf (num, [a bl) NAME 0.5 s + 0. Continuous-tiFigure 1 File Edit View Insert Tools Desktop Window Help Bode Diagram 0 ︶-10 -30 d) -45 -90 2 10 10 Frequency (rad/is) tinuou

Add a comment
Know the answer?
Add Answer to:
I know how to do part a but i really need help with part B. Thanks...
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 help as much as you can, I want to use this probem as a study guide for the final so any and all help / code is super appreciatted. Thanks Consider a simple direct current motor with transfer...

    Please help as much as you can, I want to use this probem as a study guide for the final so any and all help / code is super appreciatted. Thanks Consider a simple direct current motor with transfer function 10 P(s) = 2s2+s (a) Plot a Bode plot for the plant's transfer function. (b) Design a PD-controller that gives a closed loop bandwidth, wBw, of at least 10 rad/sec and has a phase margin of at least 30°· Using...

  • QUESTION 4 This question will reinforce how the Bode plot provides the steady-state response for ...

    QUESTION 4 This question will reinforce how the Bode plot provides the steady-state response for a linear system in response to a sinusoidal input. Consider this forced mass-spring-damper system: Let M 6, B-48, K-72 Part a) As you did for HW 1, determine steady-state solution "x,()" when FC) 3120 cos(4b) Part b) Determine the transfer function Part c) The Bode plots for the transfer function of Part b are provided in this handout. with the parameter values of Part a....

  • I want the answer for Part B I have the answer for Part A-Q1 I uploaded it 2 H I F ua 212 < > 0.5% on Y; 4Ω Fig...

    I want the answer for Part B I have the answer for Part A-Q1 I uploaded it 2 H I F ua 212 < > 0.5% on Y; 4Ω Figure 1 PART A: MATHEMATICAL MODEL AND TIME DOMAIN ANALYSIS (5%) 1) For the circuit of Figure 1, determine the transfer function relating the output voltage (s) to the input voltage V(s). Assuming zero initial condition, obtain the output response vo(t) to an input step with 6V amplitude, that is vi(t)6...

  • part II is what I need help one. part 1 is also attached for your reference...

    part II is what I need help one. part 1 is also attached for your reference Part II: Low Pass Filter contd. Noise Removal To observe the noise removal capabilities of a low -pass filter, we will add a second input to the system to simulate noise Step 1: Alter your Simulink model by adding another sine wave function and use a Sum block to add the inputs together as the new input to the system. The second sine function...

  • I really confused as to how I am supposed to do bode approximations? For the following...

    I really confused as to how I am supposed to do bode approximations? For the following transfer functions, assume that s-'ω; ω is the angular frequency in radians second. a) Use bode approximations, and plot both magnitude and phase response of the following complex functions Report the bode plots.. b) Use MATLAB or your TI-calculator or any other software package available and plot both magnitude and phase response Compare your simulated results with the bode approximations you got from a)....

  • This is programming assignment of discrete structure. Anyone know how to do it. Pls help! Thanks....

    This is programming assignment of discrete structure. Anyone know how to do it. Pls help! Thanks. Problem 1[50 pts]: Your program must take as input a filename. This input file has the following format. The first line contains five positive integers separated by white space characters. Call them a, b,c, m, n. The next m lines describe the pairs in a relation Ri on the set {1, 2, , a x(1, 2, b), and the n lines following it describe...

  • Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and...

    Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...

  • I just need help with part b. I know how to do part a, but I...

    I just need help with part b. I know how to do part a, but I don't know how to go about including the competitive equilibrium for part b 1. Suppose a monopolist producing standard paper has a monthly cost function where C(q) = ex is the quantity produced by each firm. Monthly demand for standard paper is p=-oxi. (a) What is the marginal revenue function of the firm? What is the marginal cost function of the firm? The profit...

  • Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes co...

    Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...

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