Question: Answer in MATLAB code that satisfy what is needed Assessment: 3 of 6 Tests Passed ( 5 1 % ) Correct Numerator? ( Pretest

Answer in MATLAB code that satisfy what is needed
Assessment: 3 of 6 Tests Passed (51\%)
Correct Numerator? (Pretest)
Correct Denominator? (Pretest)
The submission must contain a variable named \( P \).
does count obtained by looping of matrix? (Pretest)
Number of Left Hand
Variable leftHand has an incorrect value.
Number of Right Hand
Variable rightHand has an incorrect value.
%'Numerator variable num';
%'Denominator variable den';
%'G(s)';
%'T(s)';
%'Poles of T(s) use variable P';
% Place your answer inside the variables leftHand and rightHand
% Note: for and if should be used in obtaining the values.
num =[8];
den =[lllllllllll
system = tf(num,den);
disp('The Transfer Function is ');
system
[z,p,k]= tf2zp(num,den);
leftHand =0;
rightHand =0;
for i =1:length(p)
if(real(p(i))>0)
rightHand = rightHand +1;
else
leftHand = leftHand +1;
end
end
fprintf('Number of Poles located in the Right hand plane are %d
',rightHand);
fprintf('Number of Poles located in the Left hand plane are %d
',leftHand);
Answer in MATLAB code that satisfy what is needed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!