analpendmot

analpendmot - % This script performs some basic analyses on...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% This script performs some basic analyses on the motor-driven pendulum system % Define initial equilibrium points for an equilibrium point search xeq=[0;0;0]; % Initial equilibrium state ueq=0; % Initial equilibrium input yeq=[pi]; % Desired equilibrium output % Note: pi is a stable equilibrium point. Try changing this value to 0, save and rerun the script! % The following lines setup the trim function ix=[]; iu=[]; iy=[1]; % Find the equilibrium points associated with the nonlinear system nlpendmot.mdl [xeq,ueq,yeq,dxeq]=trim('nlpendmot',xeq,ueq,yeq,ix,iu,iy) % Find the linearized model associated with the nonlinear system nlpendmot.mdl at the desired equilibrium points [AA,BB,CC,DD]=linmod('nlpendmot',xeq,ueq) % Note: The above state space model has the following state order [Theta, I, Thetadot] % Convert the state space model to transfer function form [NUM,DEN]=ss2tf(AA,BB,CC,DD) % Convert the state space model to the Matlab's preferred LTI form sys=ss(AA,BB,CC,DD); figure % Create a pole zero map of the linearized system at the equilibrium point
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

analpendmot - % This script performs some basic analyses on...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online