SlideShare a Scribd company logo
1 of 9
Download to read offline
ROOT LOCUS (SAMPLE ASSIGNMENT)
Our online Tutors are available 24*7 to provide Help with Root Locus Homework/Assignment or a
long term Graduate/Undergraduate Root Locus Project. Our Tutors being experienced and proficient
in Root Locus ensure to provide high quality Root Locus Homework Help. Upload your Root Locus
Assignment at ‘Submit Your Assignment’ button or email it to .
You can use our ‘Live Chat’ option to schedule an Online Tutoring session with our Root Locus
Tutors.
Routh Hurwitz Criterion
RouthHurwitzCriterion.m
% PROGRAM BY ASUTOSH MISHRA %
clc;
close all;
clear all;
y1 = input('Press "y" and "Enter" to Start The Program:: ','s');
disp(' ');
if (y1~='y')
errordlg('**Please Type "y" to continue Else The Program Will Terminate**','Caution');
y1 = input('Press "y" and Enter to Continue:: ','s');
end
if (y1~='y')
disp(' ');
disp('Program Terminates');
end
y2 = y1;
y3 = y1;
clc;
while (y1=='y') && (y2=='y')
if (y3~='y')
clc;
end
disp('~:~:~:~:~:~:~:~:~:~ROUTH HURWITZ CRITERION~:~:~:~:~:~:~:~:~:~');
disp(' ');
disp(' Stability Analysis Using Characteristic Equation ');
disp(' ');
if (y1=='y');
clear a b c D1 D2 G G1 G2 H i I k K L1 L2 m n P P1 P2 Q r R R1 R2 R3 Z Z1;
disp('~:~:Analysis Using Characteristic Equation:~:~');
disp(' ');
helpdlg(sprintf('--> The Charateristic Equation Is " a(0) * x^n + a(1) * x^(n-1) + ... + a(n)"
n--> a(0) , a(1) , a(2) ... are coefficients n--> If n is odd then Even Power Coefficients are
:: a(1) , a(2) , a(3) ... a(n-1) n--> If n is even then the Even Power Coefficients are :: a(0) ,
info@assignmentpedia.com
a(2) , ... a(n) n--> Give The values of all the Coefficients(Even if they are "0") n'),'Note On
Entering Input');
a = input('Even Power Coefficients in decreasing order of power of "x"(Ex. Within []) :: ');
b = input('Odd Power Coefficients in decreasing order of power of "x"(Ex. Within []) :: ');
disp(' ');
digits(5)
L1 = length(a);
L2 = length(b);
disp(['No. Of The Roots:: ',num2str(L1+L2-1)]);
disp(' ');
disp('~:~:~:~:~:~:~:~:~:~:~:~Routh Array~:~:~:~:~:~:~:~:~:~:~:~');
if (L2>L1)
P = 0;
P1 = 0;
P2 = 0;
Z = zeros(1,(L2-L1));
R = horzcat(a,Z);
Z1 = horzcat(a,Z);
R1 = b;
disp(vpa(b));
disp(vpa(Z1));
H = 1;
for n = 1:(L2+L1-2)
R2 = R;
for m = 1:(L2-1)
if (R2(1,1)~=0)
if (abs(R2(1,1))~=inf)
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
else
R2(1,1) = 1;
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
end
else
if (R2(1,1)==0)
R(1,m) = R1(1,m+1);
if ((R1(1,1)*R2(1,2))>R1(1,2))
R(1,1) = -(1./0);
P1 = P1+1;
else
R(1,1) = (1./0);
end
end
end
end
if (R(1,1)==0)&&(R(1,m)==0)
H = R(1,1);
for i = 1:L1+L2-n
if (rem(i,2)~=0)
G(1,i) = R2(1,(i+1)./2);
else
if (rem(i,2)==0)
G(1,i) = 0;
end
end
end
r = roots(G);
R3 = r';
for j = 1:length(R3)
if (real(R3(1,j))<0.0001)
P2 = P2+1;
end
end
k = polyder(G);
i = 2:4:(length(k)*2);
k(:,(i+2)./2) = [];
G1 = zeros(1,length(R2)-length(k));
R = horzcat(k,G1);
end
if (R(1,1)<0)
P = P+1;
end
if (R2(1,1)*R(1,1)<0)
P1 = P1+1;
end
disp(vpa(R));
R1 = R2;
R2 = R;
end
if (P>0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~');
else
if (P==0) && (H==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~');
else
if (P==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~')
end
end
end
disp(' ');
disp(['Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]);
disp(['Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2-P1-1-P2)]);
disp(['Roots on the imaginary axis in Z-plane:: ',num2str(P2)]);
else
if (L1>L2)
P = 0;
P1 = 0;
P2 = 0;
Z = zeros(1,(L1-L2));
R = horzcat(b,Z);
Z1 = horzcat(b,Z);
R1 = a;
disp(vpa(a));
disp(vpa(Z1));
H = 1;
for n = 1:(L1+L2-2)
R2 = R;
for m = 1:(L1-1)
if (R2(1,1)~=0)
if (abs(R2(1,1))~=inf)
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
else
R2(1,1) = 1;
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
end
else
if (R2(1,1)==0)
R(1,m) = R1(1,m+1);
if ((R1(1,1)*R2(1,2))>R1(1,2))
R(1,1) = -(1./0);
P1 = P1+1;
else
R(1,1) = (1./0);
end
end
end
end
if (R(1,1)==0)&&(R(1,m)==0)
H = R(1,1);
for i = 1:L1+L2-n
if (rem(i,2)~=0)
G(1,i) = R2(1,(i+1)./2);
else
if (rem(i,2)==0)
G(1,i) = 0;
end
end
end
r = roots(G);
R3 = (r');
for j = 1:length(R3)
if (real((R3(1,j)))<0.0001)
P2 = P2+1;
end
end
k = polyder(G);
i = 2:4:(length(k)*2);
k(:,(i+2)./2) = [];
G1 = zeros(1,length(R2)-length(k));
R = horzcat(k,G1);
end
if (R(1,1)<0)
P = P+1;
end
if (R2(1,1)*R(1,1)<0)
P1 = P1+1;
end
disp(vpa(R));
R1 = R2;
R2 = R;
end
if (P>0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~');
else
if (P==0) && (H==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~');
disp(' ');
disp(['The Roots Of The Auxiliary Eqn. are:: ',num2str(R3)]);
else
if (P==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~')
end
end
end
disp(' ');
disp(['Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]);
disp(['Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2-1-P1-P2)]);
disp(['Roots on the imaginary axis in Z-plane:: ',num2str(P2)]);
end
end
if (L1 == L2)
P = 0;
P1 = 0;
P2 = 0;
H = 1;
for h = 1:(L1-1)
Q(1,h) = (((a(1,1).*b(1,h+1))-(b(1,1).*a(1,h+1)))./(a(1,1)));
end
L3 = length(Q);
T = a;
if (Q(1,1)==0)&&(Q(1,h)==0)
for j = 1:(length(a)+length(b)-1)
if (rem(j,2)~=0)
Q(1,j) = T(1,(j+1)./2);
else
Q(1,j) = 0;
end
end
r = roots(Q);
R3 = r';
for j = 1:length(R3)
if (real(R3(1,j))<0.0001)
P2 = P2+1;
end
end
K = polyder(Q);
I = 2:4:(length(K)*2);
K(:,(I+2)./2) = [];
G2 = zeros(1,length(b)-length(K));
Q = horzcat(K,G2);
end
if (Q(1,1)<0)
P = P+1;
P1 = P1+1;
end
P3 = 0;
Z = zeros(1,(L2-L3));
R = horzcat(Q,Z);
Z1 = horzcat(Q,Z);
R1 = a;
Z0 = zeros(1,(length(Z1)-L1));
D1 = horzcat(a,Z0);
D2 = horzcat(b,Z0);
disp(vpa(D2));
disp(vpa(D1));
disp(vpa(Z1));
for n = 1:(L1+L2-3)
R2 = R;
for m = 1:(L1-1)
if (R2(1,1)~=0)
if (abs(R2(1,1))~=inf)
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
else
R2(1,1) = 1;
R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1)));
end
else
if (R2(1,1)==0)
R(1,m) = R1(1,m+1);
if ((R1(1,1)*R2(1,2))>R1(1,2))
R(1,1) = -(1./0);
P1 = P1+1;
else
R(1,1) = (1./0);
end
end
end
end
if (R(1,1)==0)&&(R(1,m)==0)
H = R(1,1);
for i = 1:L1+L2-n
if (rem(i,2)~=0)
G(1,i) = R2(1,(i+1)./2);
else
if (rem(i,2)==0)
G(1,i) = 0;
end
end
end
r = roots(G);
R3 = r';
for j = 1:length(R3)
if (real(R3(1,j))<0.0001)
P2 = P2+1;
end
end
k = polyder(G);
i = 2:4:(length(k)*2);
k(:,(i+2)./2) = [];
G1 = zeros(1,length(R2)-length(k));
R = horzcat(k,G1);
end
if (R(1,1)<0)
P = P+1;
end
if (R2(1,1)*R(1,1)<0)
P1 = P1+1;
end
disp(vpa(R))
R1 = R2;
R2 = R;
end
if (P>0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~');
else
if (P==0) && (H==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~');
disp(' ');
disp(['The Roots Of The Auxiliary Equations Are:: ',num2str(R3)])
else
if (P==0)
disp(' ');
disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~')
end
end
end
disp(' ');
disp(['Effective no. of Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]);
disp(['Effective no. of Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2-
P1-1-P2)]);
disp(['Effective no. of Roots on the imaginary axis in Z-plane:: ',num2str(P2)]);
end
else
.....
end
disp(' ');
y2 = input('Do you want to Rerun Program again?(y/n):: ','s');
if (y2~='y')&&(y2~='n')
disp(' ');
disp('Please Type "y" or "n"');
disp(' ');
y2 = input('Do you want to Rerun Program again?(y/n):: ','s');
end
if (y2=='y')
y3 = input('Do you want to keep the previous analysis?(y/n):: ','s');
if (y3~='y')&&(y3~='n')
disp(' ');
disp('Please Type "y" or "n"');
disp(' ');
y3 = input('Do you want to keep the previous analysis?(y/n):: ','s');
end
end
end
if (y2=='n')
disp(' ');
disp('Program Terminated');
disp(' ');
disp('*****You can "Press Any Key" to clear screen and "End Program"*****');
pause
pause on;
clc;
end
visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215

More Related Content

What's hot

Minimum phase, All pass and Magnitude Squared Function
Minimum phase, All pass and Magnitude Squared FunctionMinimum phase, All pass and Magnitude Squared Function
Minimum phase, All pass and Magnitude Squared FunctionCOMSATS Abbottabad
 
Bubble and-merge-sort
Bubble and-merge-sortBubble and-merge-sort
Bubble and-merge-sortnikhilsh66131
 
Merge sort code in C explained
Merge sort code in C explained Merge sort code in C explained
Merge sort code in C explained Mohit Tare
 
小波变换程序
小波变换程序小波变换程序
小波变换程序byron zhao
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMTowfeeq Umar
 
digital control Chapter 2 slide
digital control Chapter 2 slidedigital control Chapter 2 slide
digital control Chapter 2 slideasyrafjpk
 
control system
control systemcontrol system
control systemnaqeeb93
 
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...nutkoon
 
Merge sort
Merge sortMerge sort
Merge sortKumar
 
Inverse Laplace Transform
Inverse Laplace TransformInverse Laplace Transform
Inverse Laplace TransformVishnu V
 

What's hot (17)

Minimum phase, All pass and Magnitude Squared Function
Minimum phase, All pass and Magnitude Squared FunctionMinimum phase, All pass and Magnitude Squared Function
Minimum phase, All pass and Magnitude Squared Function
 
Phase Responce of Pole zero
Phase Responce of Pole zeroPhase Responce of Pole zero
Phase Responce of Pole zero
 
Filter Designing
Filter DesigningFilter Designing
Filter Designing
 
Merge sort
Merge sortMerge sort
Merge sort
 
Bubble and-merge-sort
Bubble and-merge-sortBubble and-merge-sort
Bubble and-merge-sort
 
Merge sort code in C explained
Merge sort code in C explained Merge sort code in C explained
Merge sort code in C explained
 
小波变换程序
小波变换程序小波变换程序
小波变换程序
 
Shortest path algorithms
Shortest path algorithmsShortest path algorithms
Shortest path algorithms
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
digital control Chapter 2 slide
digital control Chapter 2 slidedigital control Chapter 2 slide
digital control Chapter 2 slide
 
control system
control systemcontrol system
control system
 
inverse z transform
inverse z transforminverse z transform
inverse z transform
 
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...
13200836 solution-manual-process-dynamics-and-control-donald-r-coughanowr-130...
 
Merge sort
Merge sortMerge sort
Merge sort
 
Inverse Laplace Transform
Inverse Laplace TransformInverse Laplace Transform
Inverse Laplace Transform
 
Laplace table
Laplace tableLaplace table
Laplace table
 

Similar to Help with root locus homework1

The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorAbhranil Das
 
Scope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesScope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesEelco Visser
 
Cgo2007 P3 3 Birkbeck
Cgo2007 P3 3 BirkbeckCgo2007 P3 3 Birkbeck
Cgo2007 P3 3 BirkbeckaiQUANT
 
A Dimension Abstraction Approach to Vectorization in Matlab
A Dimension Abstraction Approach to Vectorization in MatlabA Dimension Abstraction Approach to Vectorization in Matlab
A Dimension Abstraction Approach to Vectorization in MatlabaiQUANT
 
A Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter ThreeA Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter ThreeChung Hua Universit
 
Fractional Calculus A Commutative Method on Real Analytic Functions
Fractional Calculus A Commutative Method on Real Analytic FunctionsFractional Calculus A Commutative Method on Real Analytic Functions
Fractional Calculus A Commutative Method on Real Analytic FunctionsMatt Parker
 
IRJET- On Certain Subclasses of Univalent Functions: An Application
IRJET- On Certain Subclasses of Univalent Functions: An ApplicationIRJET- On Certain Subclasses of Univalent Functions: An Application
IRJET- On Certain Subclasses of Univalent Functions: An ApplicationIRJET Journal
 
Scala as a Declarative Language
Scala as a Declarative LanguageScala as a Declarative Language
Scala as a Declarative Languagevsssuresh
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programmingAlberto Labarga
 
Csci101 lect04 advanced_selection
Csci101 lect04 advanced_selectionCsci101 lect04 advanced_selection
Csci101 lect04 advanced_selectionElsayed Hemayed
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdfshruti533256
 
Algorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical FileAlgorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical FileKushagraChadha1
 
Programming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYProgramming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYvikram mahendra
 

Similar to Help with root locus homework1 (20)

The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel Oscillator
 
Scope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesScope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languages
 
Lecture5
Lecture5Lecture5
Lecture5
 
Struct examples
Struct examplesStruct examples
Struct examples
 
Graph Algebra
Graph AlgebraGraph Algebra
Graph Algebra
 
Cgo2007 P3 3 Birkbeck
Cgo2007 P3 3 BirkbeckCgo2007 P3 3 Birkbeck
Cgo2007 P3 3 Birkbeck
 
A Dimension Abstraction Approach to Vectorization in Matlab
A Dimension Abstraction Approach to Vectorization in MatlabA Dimension Abstraction Approach to Vectorization in Matlab
A Dimension Abstraction Approach to Vectorization in Matlab
 
Matlab dsp examples
Matlab dsp examplesMatlab dsp examples
Matlab dsp examples
 
A Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter ThreeA Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter Three
 
Fractional Calculus A Commutative Method on Real Analytic Functions
Fractional Calculus A Commutative Method on Real Analytic FunctionsFractional Calculus A Commutative Method on Real Analytic Functions
Fractional Calculus A Commutative Method on Real Analytic Functions
 
IRJET- On Certain Subclasses of Univalent Functions: An Application
IRJET- On Certain Subclasses of Univalent Functions: An ApplicationIRJET- On Certain Subclasses of Univalent Functions: An Application
IRJET- On Certain Subclasses of Univalent Functions: An Application
 
Asymptotic Analysis
Asymptotic  AnalysisAsymptotic  Analysis
Asymptotic Analysis
 
Scala as a Declarative Language
Scala as a Declarative LanguageScala as a Declarative Language
Scala as a Declarative Language
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
Ch3
Ch3Ch3
Ch3
 
Sequences
SequencesSequences
Sequences
 
Csci101 lect04 advanced_selection
Csci101 lect04 advanced_selectionCsci101 lect04 advanced_selection
Csci101 lect04 advanced_selection
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf
 
Algorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical FileAlgorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical File
 
Programming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYProgramming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAY
 

More from Assignmentpedia

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side componentsAssignmentpedia
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detectionAssignmentpedia
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar trackingAssignmentpedia
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section projectAssignmentpedia
 
Radar application project help
Radar application project helpRadar application project help
Radar application project helpAssignmentpedia
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework helpAssignmentpedia
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysisAssignmentpedia
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation projectAssignmentpedia
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming projectAssignmentpedia
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlabAssignmentpedia
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework HelpAssignmentpedia
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework helpAssignmentpedia
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework HelpAssignmentpedia
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication ProjectAssignmentpedia
 

More from Assignmentpedia (20)

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side components
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detection
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar tracking
 
Resolution project
Resolution projectResolution project
Resolution project
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section project
 
Radar application project help
Radar application project helpRadar application project help
Radar application project help
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework help
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysis
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation project
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
 
Links design
Links designLinks design
Links design
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlab
 
Transmitter subsystem
Transmitter subsystemTransmitter subsystem
Transmitter subsystem
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework help
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework Help
 
Video Codec
Video CodecVideo Codec
Video Codec
 
Radar Spectral Analysis
Radar Spectral AnalysisRadar Spectral Analysis
Radar Spectral Analysis
 
Pi Controller
Pi ControllerPi Controller
Pi Controller
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication Project
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Help with root locus homework1

  • 1. ROOT LOCUS (SAMPLE ASSIGNMENT) Our online Tutors are available 24*7 to provide Help with Root Locus Homework/Assignment or a long term Graduate/Undergraduate Root Locus Project. Our Tutors being experienced and proficient in Root Locus ensure to provide high quality Root Locus Homework Help. Upload your Root Locus Assignment at ‘Submit Your Assignment’ button or email it to . You can use our ‘Live Chat’ option to schedule an Online Tutoring session with our Root Locus Tutors. Routh Hurwitz Criterion RouthHurwitzCriterion.m % PROGRAM BY ASUTOSH MISHRA % clc; close all; clear all; y1 = input('Press "y" and "Enter" to Start The Program:: ','s'); disp(' '); if (y1~='y') errordlg('**Please Type "y" to continue Else The Program Will Terminate**','Caution'); y1 = input('Press "y" and Enter to Continue:: ','s'); end if (y1~='y') disp(' '); disp('Program Terminates'); end y2 = y1; y3 = y1; clc; while (y1=='y') && (y2=='y') if (y3~='y') clc; end disp('~:~:~:~:~:~:~:~:~:~ROUTH HURWITZ CRITERION~:~:~:~:~:~:~:~:~:~'); disp(' '); disp(' Stability Analysis Using Characteristic Equation '); disp(' '); if (y1=='y'); clear a b c D1 D2 G G1 G2 H i I k K L1 L2 m n P P1 P2 Q r R R1 R2 R3 Z Z1; disp('~:~:Analysis Using Characteristic Equation:~:~'); disp(' '); helpdlg(sprintf('--> The Charateristic Equation Is " a(0) * x^n + a(1) * x^(n-1) + ... + a(n)" n--> a(0) , a(1) , a(2) ... are coefficients n--> If n is odd then Even Power Coefficients are :: a(1) , a(2) , a(3) ... a(n-1) n--> If n is even then the Even Power Coefficients are :: a(0) , info@assignmentpedia.com
  • 2. a(2) , ... a(n) n--> Give The values of all the Coefficients(Even if they are "0") n'),'Note On Entering Input'); a = input('Even Power Coefficients in decreasing order of power of "x"(Ex. Within []) :: '); b = input('Odd Power Coefficients in decreasing order of power of "x"(Ex. Within []) :: '); disp(' '); digits(5) L1 = length(a); L2 = length(b); disp(['No. Of The Roots:: ',num2str(L1+L2-1)]); disp(' '); disp('~:~:~:~:~:~:~:~:~:~:~:~Routh Array~:~:~:~:~:~:~:~:~:~:~:~'); if (L2>L1) P = 0; P1 = 0; P2 = 0; Z = zeros(1,(L2-L1)); R = horzcat(a,Z); Z1 = horzcat(a,Z); R1 = b; disp(vpa(b)); disp(vpa(Z1)); H = 1; for n = 1:(L2+L1-2) R2 = R; for m = 1:(L2-1) if (R2(1,1)~=0) if (abs(R2(1,1))~=inf) R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); else R2(1,1) = 1; R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); end else if (R2(1,1)==0) R(1,m) = R1(1,m+1); if ((R1(1,1)*R2(1,2))>R1(1,2)) R(1,1) = -(1./0); P1 = P1+1; else R(1,1) = (1./0); end end end end if (R(1,1)==0)&&(R(1,m)==0)
  • 3. H = R(1,1); for i = 1:L1+L2-n if (rem(i,2)~=0) G(1,i) = R2(1,(i+1)./2); else if (rem(i,2)==0) G(1,i) = 0; end end end r = roots(G); R3 = r'; for j = 1:length(R3) if (real(R3(1,j))<0.0001) P2 = P2+1; end end k = polyder(G); i = 2:4:(length(k)*2); k(:,(i+2)./2) = []; G1 = zeros(1,length(R2)-length(k)); R = horzcat(k,G1); end if (R(1,1)<0) P = P+1; end if (R2(1,1)*R(1,1)<0) P1 = P1+1; end disp(vpa(R)); R1 = R2; R2 = R; end if (P>0) disp(' '); disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~'); else if (P==0) && (H==0) disp(' '); disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~'); else if (P==0) disp(' '); disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~') end
  • 4. end end disp(' '); disp(['Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]); disp(['Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2-P1-1-P2)]); disp(['Roots on the imaginary axis in Z-plane:: ',num2str(P2)]); else if (L1>L2) P = 0; P1 = 0; P2 = 0; Z = zeros(1,(L1-L2)); R = horzcat(b,Z); Z1 = horzcat(b,Z); R1 = a; disp(vpa(a)); disp(vpa(Z1)); H = 1; for n = 1:(L1+L2-2) R2 = R; for m = 1:(L1-1) if (R2(1,1)~=0) if (abs(R2(1,1))~=inf) R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); else R2(1,1) = 1; R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); end else if (R2(1,1)==0) R(1,m) = R1(1,m+1); if ((R1(1,1)*R2(1,2))>R1(1,2)) R(1,1) = -(1./0); P1 = P1+1; else R(1,1) = (1./0); end end end end if (R(1,1)==0)&&(R(1,m)==0) H = R(1,1); for i = 1:L1+L2-n if (rem(i,2)~=0) G(1,i) = R2(1,(i+1)./2);
  • 5. else if (rem(i,2)==0) G(1,i) = 0; end end end r = roots(G); R3 = (r'); for j = 1:length(R3) if (real((R3(1,j)))<0.0001) P2 = P2+1; end end k = polyder(G); i = 2:4:(length(k)*2); k(:,(i+2)./2) = []; G1 = zeros(1,length(R2)-length(k)); R = horzcat(k,G1); end if (R(1,1)<0) P = P+1; end if (R2(1,1)*R(1,1)<0) P1 = P1+1; end disp(vpa(R)); R1 = R2; R2 = R; end if (P>0) disp(' '); disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~'); else if (P==0) && (H==0) disp(' '); disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~'); disp(' '); disp(['The Roots Of The Auxiliary Eqn. are:: ',num2str(R3)]); else if (P==0) disp(' '); disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~') end end end
  • 6. disp(' '); disp(['Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]); disp(['Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2-1-P1-P2)]); disp(['Roots on the imaginary axis in Z-plane:: ',num2str(P2)]); end end if (L1 == L2) P = 0; P1 = 0; P2 = 0; H = 1; for h = 1:(L1-1) Q(1,h) = (((a(1,1).*b(1,h+1))-(b(1,1).*a(1,h+1)))./(a(1,1))); end L3 = length(Q); T = a; if (Q(1,1)==0)&&(Q(1,h)==0) for j = 1:(length(a)+length(b)-1) if (rem(j,2)~=0) Q(1,j) = T(1,(j+1)./2); else Q(1,j) = 0; end end r = roots(Q); R3 = r'; for j = 1:length(R3) if (real(R3(1,j))<0.0001) P2 = P2+1; end end K = polyder(Q); I = 2:4:(length(K)*2); K(:,(I+2)./2) = []; G2 = zeros(1,length(b)-length(K)); Q = horzcat(K,G2); end if (Q(1,1)<0) P = P+1; P1 = P1+1; end P3 = 0; Z = zeros(1,(L2-L3)); R = horzcat(Q,Z); Z1 = horzcat(Q,Z);
  • 7. R1 = a; Z0 = zeros(1,(length(Z1)-L1)); D1 = horzcat(a,Z0); D2 = horzcat(b,Z0); disp(vpa(D2)); disp(vpa(D1)); disp(vpa(Z1)); for n = 1:(L1+L2-3) R2 = R; for m = 1:(L1-1) if (R2(1,1)~=0) if (abs(R2(1,1))~=inf) R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); else R2(1,1) = 1; R(1,m) = (((R2(1,1).*R1(1,m+1))-(R1(1,1).*R2(1,m+1)))./(R2(1,1))); end else if (R2(1,1)==0) R(1,m) = R1(1,m+1); if ((R1(1,1)*R2(1,2))>R1(1,2)) R(1,1) = -(1./0); P1 = P1+1; else R(1,1) = (1./0); end end end end if (R(1,1)==0)&&(R(1,m)==0) H = R(1,1); for i = 1:L1+L2-n if (rem(i,2)~=0) G(1,i) = R2(1,(i+1)./2); else if (rem(i,2)==0) G(1,i) = 0; end end end r = roots(G); R3 = r'; for j = 1:length(R3) if (real(R3(1,j))<0.0001) P2 = P2+1;
  • 8. end end k = polyder(G); i = 2:4:(length(k)*2); k(:,(i+2)./2) = []; G1 = zeros(1,length(R2)-length(k)); R = horzcat(k,G1); end if (R(1,1)<0) P = P+1; end if (R2(1,1)*R(1,1)<0) P1 = P1+1; end disp(vpa(R)) R1 = R2; R2 = R; end if (P>0) disp(' '); disp('~:~:~:~:~:~:~The System is Unstable~:~:~:~:~:~:~'); else if (P==0) && (H==0) disp(' '); disp('~:~:~:~:~:~:~The System is Marginally Stable~:~:~:~:~:~:~'); disp(' '); disp(['The Roots Of The Auxiliary Equations Are:: ',num2str(R3)]) else if (P==0) disp(' '); disp('~:~:~:~:~:~:~The System is Stable~:~:~:~:~:~:~') end end end disp(' '); disp(['Effective no. of Roots to the right of imaginary axis in Z-plane:: ',num2str(P1)]); disp(['Effective no. of Roots to the left of imaginary axis in Z-plane:: ',num2str(L1+L2- P1-1-P2)]); disp(['Effective no. of Roots on the imaginary axis in Z-plane:: ',num2str(P2)]); end else ..... end disp(' '); y2 = input('Do you want to Rerun Program again?(y/n):: ','s');
  • 9. if (y2~='y')&&(y2~='n') disp(' '); disp('Please Type "y" or "n"'); disp(' '); y2 = input('Do you want to Rerun Program again?(y/n):: ','s'); end if (y2=='y') y3 = input('Do you want to keep the previous analysis?(y/n):: ','s'); if (y3~='y')&&(y3~='n') disp(' '); disp('Please Type "y" or "n"'); disp(' '); y3 = input('Do you want to keep the previous analysis?(y/n):: ','s'); end end end if (y2=='n') disp(' '); disp('Program Terminated'); disp(' '); disp('*****You can "Press Any Key" to clear screen and "End Program"*****'); pause pause on; clc; end visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215