Plot the function y(x, ) from Exercise 11 for 5 = 0.3, 0.5, and 0.8. Create one figure with four subplots and plot y for three different values of 5 in three subplots and fourth subplot should have multiple plots of y for all the values of 5.

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
EXERCISE 12
Plot the function y(x, ) from Exercise 11 for 5 = 0.3, 0.5, and 0.8. Create one figure with four
subplots and plot y for three different values of 5 in three subplots and fourth subplot should
have multiple plots of y for all the values of .
Transcribed Image Text:EXERCISE 12 Plot the function y(x, ) from Exercise 11 for 5 = 0.3, 0.5, and 0.8. Create one figure with four subplots and plot y for three different values of 5 in three subplots and fourth subplot should have multiple plots of y for all the values of .
Expert Solution
Step 1

clc;clear all;format compact
x=input('Enter range of x values for which plot is to be created: '); %Asks user to enter x
zeta=[0.3 0.5 0.8]; %Values of zeta
%Computes y(x) for each zeta
y1=1-((1/sqrt(1-zeta(1)^2)))*exp(-zeta(1).*x).*sin(sqrt(1-zeta(1)^2).*x+acos(zeta(1)));
y2=1-((1/sqrt(1-zeta(2)^2)))*exp(-zeta(2).*x).*sin(sqrt(1-zeta(2)^2).*x+acos(zeta(2)));
y3=1-((1/sqrt(1-zeta(3)^2)))*exp(-zeta(3).*x).*sin(sqrt(1-zeta(3)^2).*x+acos(zeta(3)));
%Creates 4 subplots as asked.
subplot(2,2,1)
plot(x,y1,'-k','LineWidth',2);xlabel('x in radians');ylabel('y(x)');title('\zeta=0.3');
subplot(2,2,2)
plot(x,y2,'-r','LineWidth',2);xlabel('x in radians');ylabel('y(x)');title('\zeta=0.5');
subplot(2,2,3)
plot(x,y3,'-b','LineWidth',2);xlabel('x in radians');ylabel('y(x)');title('\zeta=0.8');
subplot(2,2,4)
plot(x,y1,x,y2,x,y3,'LineWidth',2);xlabel('x in radians');ylabel('y(x)');legend('\zeta=0.3','\zeta=0.5','\zeta=0.8');

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
State Diagram and Its Designing
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.
Similar questions
  • SEE MORE QUESTIONS
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,