MATLAB question. Please answer all the questions and also upload the code by MATLAB. Thanks. Down vote if no code provided.
MATLAB code is provided below in bold letters with comments for an explanation with results.
clc;
close all;
clear all;
% step1:
% the dynamic transfer function model is given below.
% deffine the RLC paratemeters
R = 280;
L = 10e-3;
C = 0.9e-6;
Vs = 12;
% define the laplace variable s
s = tf('s');
% characteristic equation is
minreal(R+1/(C*s)+L*s)
result:
0.01 s^2 + 280 s + 1.111e006 =0=> s^2 + 2800s + 1.111*10^8 = 0 is the characteristic equation .
the open loop transfer function is
Transfer function:
1.111e008
-------------------------
s^2 + 28000 s + 1.111e008
Code for obtaining the closed-loop system and the transfer function
% characteristic equation of the closed loop
system
% the transfer function of the closed loop system is
T = feedback(G,H)
result:
the closed loop transfer function is
1.111e008 s
-----------------------------------------
s^3 + 28000 s^2 + 1.111e008 s + 1.111e008
The characteristic equation of the closed-loop system is given
by
s^3 + 28000 s^2 + 1.111e008 s + 1.111e008 = 0.
Roots of the characteristic equation:
code:
pole(G); % poles of the system are nothing but the roots of the characteristic equation.
result: the roots are given below.
1.0e+004 *
-2.3214
-0.4786
MATLAB code to plot vc(t).
clear s G H;
syms s; % symbolic variables
G = 1/(C*s)/(R+1/(C*s)+L*s);
Vs = 12/s; % input in laplace domain
Vc = Vs*G; % in laplace domain
vc = ilaplace(Vc); % output in time domain.
% define time vector to plot vc
t = 0:1e-4:0.005;
vc = subs(vc); % substitute time in vc(t)
% now plot the time vs vc(t)
figure;
plot(t,vc,'linewidth',2);grid
on;xlabel('time');ylabel('Amplitude');title('vc(t)');
result:
MATLAB question. Please answer all the questions and also upload the code by MATLAB. Thanks. Down vote if no code provided. For the circuit shown above, at the moment t = 0, the switch is closed, fin...
PID controller MATLAB 5. Apply a PID controller on the closed loop system and write a MatLab scrip that will allow you to change the values of P, I, and D coefficients and plot the effects of this values on the step response of the system. Show all posible forms obtained when changing the values of the PID controller. When is the system damped, overdamped, etc. Chose values of P starting from 0 to any value you want. Do the...
please use MATLAB, screenshot the code and the plots. Answer all parts. Laboratory description: The speed control of a high-speed train is represented by the system shown in Figure 1. The transfer function of the train dynamics is as follows. G(s) = 2 + 10s + 20 Laboratory assignment: Part A. For the open-loop system described by the following block diagram, assume that the input r(t) is a unit step. (1) Compute the steady-state system output Yss. (2) Find the...
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Please wriite the matlab code of the question :))) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& PROBLEM 4 Suppose that a system is shown in Figure 4. There are three controllers that might be incorporated into this system. 1·G,(s)-K (proportional (P) controller) 2·G,(s)=K/s (integral (I) controller) 3. G (s) K(1+1/s) (proportional, integral (PI) controller) The system requirements are Ts < 10 seconds and P.。. 10% for a unit step response. (a) For the (P) controller, write a piece of MATLAB code to plot root locus...
use MATLAB functions to solve this problem The current, i, in a series RLC circuit when the switch is closed at t 0 can be determined from the solution of the V 2nd-order ODE to v t-0 d2i ndi 1 where R, L, and c are the resistance of the resistor, the inductance of the inductor, and the capacitance of the capacitor, respectively. (a) Solve the equation for i in terms of L, R, C, and t, assuming that at...
Please show all work and write neatly so that I can understand. Also please show MATLAB code so I can learn how to do this on my own. Problem 2 Consider a system 0 11 0 -10 T21 T2 T2 a) Design a state-feedback controller so that the closed-loop step response has an overshoot of less than 25% and a 1% settling time under 0.115 sec. b) Usc MATLAB to verify that your design mects the specifications. If it docs...
Please answer all the questions with MATLAB and also upload the code. Thanks. 3 Experiment - Matlab controller complexity and steady-state 3.1 Consider the satellite-attitude control problem shown in following figure where the normalized parameters are J 10 spacecraft inertia; N-m-sec2 /rad erreference satellite attitude; rad actual satellite attitude; rad Hy 1 sensor scale; factor volts/rad Hr = 1 reference sensor scale factor ; volts/rad w= disturbance torque: N-m H, D(s) Js Figure 4: Satellite attitude control Suppose kP =...
Automatic control Course.. Please answer all the questions and details jose the best answer for each question below and mark your choice in the provided answer table. The polar frequency response of a system is shown in the are for different gains, K.K.K), A) The closed-loop system is unstable for K, B) The closed-loop system is stable for k,,K, K, C) The closed-loop system is crtically stable for x, D) None of the above 2. The system shown a side...
please solve as matlab code. The system in Figure 3 comprises a motor and a contoller. The performance requirements entail a steady state error for ramp input r(t) Ct, smaller than 0.01C. Here, C is a constant. The overshoot for step input must be such that P.0. 5% and the settling time with a 2% error should be T, 2 seconds (a) Based on rlocus function, write a piece of MATLAB code which establishes the controller. (b) Create the graph...
Write as MATLAB code with comments thank you. The system in Figure 3 comprises a motor and a contoller. The performance requirements entail a steady state error for ramp input r(t) Ct, smaller than 0.01C. Here, C is a constant. The overshoot for step input must be such that P.0.S 5% and the settling time with a 2% error should be T. 2 seconds. (a) Based on rlocus function, write a piece of MATLAB code which establishes the controller. (b)...
please help answer all the question and dont skip. Thank you! 1. Sketch the pole-zero diagram for the following transfer function. Ensure you label the axes and the pole-zero locations. Assume a > b > 0. TF(s) = (s + a) s(s+b) 2. If the time constant of the lowest frequency pole in a system is 1 second, after approx- imately what period of time following turn-on could the system be considered to be in steady-state conditions? 3. The PID...