Matlab Code 3Second-order system transient performance For Matlab Code 3, run the program by inputting poles...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Matlab Code 3Second-order system transient performance For Matlab Code 3, run the program by inputting poles to observe transient performance. Please select two negative real poles, two positive poles, two complex poles with negative real parts, and two complex poles with positive real parts, respectively. In total, 8 poles should be tested. insert the pole location for first pole x1=input('pole_1='); x2=input('pole_2='); if (real (x1) <0 || real (x2) <0) p1=[1 -x1] p2=[1 -x2] allocate the first pole value to x1 allocate the second pole value to x2 define polynomial for first pole. for eg if s=-x1 is the first pole the polynomial would be s+x1 deng-conv (p1.p2) multiply the two polynomials to obtain the second order polynomial in the form as^2+bs+c omegan-sqrt (deng (3) /deng (1)) define polynomial for second pole. for eg if s=-x2 is the second pole the polynomial would be s+x2 Ts=4/(zeta*omegan) zeta= (deng (2)/deng (1))/(2*omegan) disp(' calculate the natural frequency esqrt (c/a) end calculate the damping ratio= (b/a)/(2*wn) calculate settling time = (4/(z*wn)) Tp-pi/ (omegan*sqrt (1-zeta^2)) calculate peak | pos=100*exp(-zeta*pi/sqrt (1-zeta^2)) calculate percentage tovershoot (100*e^(-z*pi/sqrt (1-z^2))) *') *time=pi/[wn*sqrt (1-z^2)] end if (real (x1) <0 && imag (x1)==0) || (real (x2) <0 && imag (x2)==0) disp('====This is an overdamped system- =¹) Matlab Code 3Second-order system transient performance For Matlab Code 3, run the program by inputting poles to observe transient performance. Please select two negative real poles, two positive poles, two complex poles with negative real parts, and two complex poles with positive real parts, respectively. In total, 8 poles should be tested. insert the pole location for first pole x1=input('pole_1='); x2=input('pole_2='); if (real (x1) <0 || real (x2) <0) p1=[1 -x1] p2=[1 -x2] allocate the first pole value to x1 allocate the second pole value to x2 define polynomial for first pole. for eg if s=-x1 is the first pole the polynomial would be s+x1 deng-conv (p1.p2) multiply the two polynomials to obtain the second order polynomial in the form as^2+bs+c omegan-sqrt (deng (3) /deng (1)) define polynomial for second pole. for eg if s=-x2 is the second pole the polynomial would be s+x2 Ts=4/(zeta*omegan) zeta= (deng (2)/deng (1))/(2*omegan) disp(' calculate the natural frequency esqrt (c/a) end calculate the damping ratio= (b/a)/(2*wn) calculate settling time = (4/(z*wn)) Tp-pi/ (omegan*sqrt (1-zeta^2)) calculate peak | pos=100*exp(-zeta*pi/sqrt (1-zeta^2)) calculate percentage tovershoot (100*e^(-z*pi/sqrt (1-z^2))) *') *time=pi/[wn*sqrt (1-z^2)] end if (real (x1) <0 && imag (x1)==0) || (real (x2) <0 && imag (x2)==0) disp('====This is an overdamped system- =¹)
Expert Answer:
Answer rating: 100% (QA)
Here is the corrected version matlab x1 inputpole 1 input for the first pole x2 inp... View the full answer
Related Book For
Posted Date:
Students also viewed these accounting questions
-
Two mating parts have critical dimensions x1 and x2 as shown in the figure. Assume that x1 and x2 are normally distributed with means 1 and 2 and standard deviations 1 = 0.400and 2 = 0.300. If it is...
-
In the engine system shown, l = 8 in. and b = 3 in. Knowing that the crank AB rotates with a constant angular velocity of 1000 rpm clockwise, determine the velocity of piston P and the angular...
-
The linear system x1 + 1/2 x2 + 1/3 x3 = 5/6, 1/2 x1 + 1/3 x2 + 1/4 x3 = 5/12, 1/3 x1 + 1/4 x2 + 1/5 x3 = 17/60
-
Predict your results. Write "yes" or "no," depending on whether you think the plate will show growth. Give the reason (s) for your predictions. Observe the colonies through the petri plate lids. Do...
-
The analyst from Exercise, worried about collinearity, regresses Age against Past Spending, Income, and Networth. The output shows: Response Variable: Age R2 = 98.75% Adjusted R2 = 98.74% s = 2.112...
-
The Turbine Oil Oxidation Test (TOST) and the Rotating Bomb Oxidation Test (RBOT) are two different procedures for evaluating the oxidation stability of steam turbine oils. The article "Dependence of...
-
Bistro Servers The RestaurantTips data file comes from a sample of 157 bills at a small bistro/wine bar. Three different servers (labeled A, $\mathrm{B}$, and $\mathrm{C}$ ) worked on the nights the...
-
Assume that Home and Office City, Inc., provided the following comparative data concerning long-term debt in the notes to its 2011 annual report (amounts in millions): As indicated, Home and Office...
-
. Assume that over the past 88 years, U.S. Treasury bills had an average return of 3.5% as compared to 6.1% on long-term government bonds. What was the average risk premium on the long-term...
-
1. Prepare the journal entries for transactions. (If no entry is required for a particular transaction/event, select "No journal entry required" in the first account field.) 2. Prepare an income...
-
Josie is making pizza dough. Complete the double number line by filling in the missing values. Then write an equation that models the relationship between the total cups of flour, c, and number of...
-
How do servant leadership principles intersect with contemporary organizational structures, and what role do they play in cultivating a sense of purpose and community among team members?
-
Define motivation. Provide an example of extrinsic motivation and intrinsic motivation for someone going to school to get their college degree.
-
Why have the HR and training divisions built quite different database systems? What are the difficulties involved in integrating the functions of these divisions? What are the advantages of...
-
What are three actions a manager can take to ensure they are providing motivational "health food" to your employees. Optimal Motivation Susan Fowler When it comes to motivation, the reason you are...
-
The following selected accounts appear in the ledger of Parks Construction Inc. at the beginning of the current year: Preferred 2% Stock, $100 par (100,000 shares authorized. 80,000 shares issued)...
-
SPI Company has the following data for the year ended December 31, Year 1: Sales (credit) Sales returns and allowances Accounts receivable (December 31, Year 1) Allowance for doubtful accounts...
-
(a) What do data breach notification laws require? (b) Why has this caused companies to think more about security?
-
Let x1,..., xk be linearly independent vectors in Rn, and let A be a nonsingular n n matrix. Define yi = Axi for i = 1,....,k. Show that y1,....,yk are linearly independent.
-
Let and let I be the identity operator on R3. Find the coordinates of I(e1), I(e2), and I(e3) with respect to [y1, y2, y3]. 2 - 3D
-
Let A and B be 2 Ã 2 matrices and let (a) Show that det(A + B) = det(A) + det(B) + det(C) + det(D). (b) Show that if B = EA then det(A + B) = det(A) + det(B). D-I 12 a21 a22
-
The following are summaries of the cash book and bank accounts of J. Duncan who does not keep his books using the double entry system. You are required to: (a) Calculate the value of J. Duncan's...
-
Read the following and answer the questions below. On 31 December 2015 the bank column of C. Tench's cash book showed a debit balance of 1,500. The monthly bank statement written up to 31 December...
-
The bank columns in the cash book for June 2016 and the bank statement for that month for D. Hogan are as follows: You are required to: () Write the cash book up to date to take the above into...
Study smarter with the SolutionInn App