Create plots for the second-order control system, in the same figure, given by the following expression for different values of the damping ratioč (zeta), 1 y = 1-- "sin( – 5°x + cos"(5) Use five different values for 6; 0.1, 0.2, 0.4, 0.7, 0.9. Also, ask user to enter vector x that represents range (x-axis) over which plots will be created. Sample Output y = 1-(16(1-53))o%sin(v(1<3)x+cos'x) 1.8 5 =0.1 5 =0.2 5 =0.4 5 = 0.7 5 =0.9 1.6 1.4 1.2 0.8 0.6 0.4 0.2 4. 6. 10 12 14 x in radians 1. (x)A

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
Question
MATLAB Tutorial
EXERCISE 1l
Create plots for the second-order control system, in the same figure, given by the following
expression for different values of the damping ratio5 (zeta),
1
y = 1-
sin( V- 5°x+ cos" (5)
sest
Use five different values for (; 0.1, 0.2, 0.4, 0.7, 0.9. Also, ask user to enter vector x that
represents range (x-axis) over which plots will be created.
Sample Output
y = 1-(1/(1-<3))e*sin(v(1-53)x+cos'x)
1.8
5 =0.1
5 = 0.2
5 = 0.4
5 = 0.7
5 =0.9
1.6
1.4
1.2
0.8
0.6
0.4
0.2
4
8
10
12
14
x in radians
Hint: Create five vectors; each corresponding to a specific value of 5
(x)A
Transcribed Image Text:MATLAB Tutorial EXERCISE 1l Create plots for the second-order control system, in the same figure, given by the following expression for different values of the damping ratio5 (zeta), 1 y = 1- sin( V- 5°x+ cos" (5) sest Use five different values for (; 0.1, 0.2, 0.4, 0.7, 0.9. Also, ask user to enter vector x that represents range (x-axis) over which plots will be created. Sample Output y = 1-(1/(1-<3))e*sin(v(1-53)x+cos'x) 1.8 5 =0.1 5 = 0.2 5 = 0.4 5 = 0.7 5 =0.9 1.6 1.4 1.2 0.8 0.6 0.4 0.2 4 8 10 12 14 x in radians Hint: Create five vectors; each corresponding to a specific value of 5 (x)A
Expert Solution
Step 1

Matlab code:

clc;

%input from user
x = input('Enter 5 max range value for each zeta plot, in the form [x,x,x,x,x]:');

%creating vector range from user input
x1=0:0.01:x(1);
zeta = 0.1; %assigning zeta value
%equation of the system
y=1-(1/sqrt(1-(zeta^2))).*exp(-zeta*x1).*sin((sqrt(1-(zeta^2))*x1)+(acos(zeta)));
plot(x1,y); %plotting y(x1)
hold on; %holding on to plot other wave on same graph

%creating vector range from user input
x2=0:0.01:x(2);
zeta = 0.2; %assigning zeta value
y=1-(1/sqrt(1-(zeta^2))).*exp(-zeta*x2).*sin((sqrt(1-(zeta^2))*x2)+(acos(zeta)));
plot(x2,y); %plotting y(x2)
hold on;

%creating vector range from user input
x3=0:0.01:x(3);
zeta = 0.4; %assigning zeta value
y=1-(1/sqrt(1-(zeta^2))).*exp(-zeta*x3).*sin((sqrt(1-(zeta^2))*x3)+(acos(zeta)));
plot(x3,y); %plotting y(x3)
hold on;

%creating vector range from user input
x4=0:0.01:x(4);
zeta = 0.7; %assigning zeta value
y=1-(1/sqrt(1-(zeta^2))).*exp(-zeta*x4).*sin((sqrt(1-(zeta^2))*x4)+(acos(zeta)));
plot(x4,y); %plotting y(x4)
hold on;

%creating vector range from user input
x5=0:0.01:x(5);
zeta = 0.9; %assigning zeta value
y=1-(1/sqrt(1-(zeta^2))).*exp(-zeta*x5).*sin((sqrt(1-(zeta^2))*x5)+(acos(zeta)));
plot(x5,y); %plotting y(x5)
hold on;

legend('zeta=0.1','zeta=0.2','zeta=0.4','zeta=0.7','zeta=0.9');
title("second order control system");
xlabel("x in radians"); %labelling x axis
ylabel ("y(x)"); %labelling y axis

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Routh Hurwitz Criteria
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,