No BSD License
-
L=alqfbg(A,B,Q,R)
ALQFBG Analog Linear quadratic feedback gains.
-
L=fbg(A,B,p,q);
FBG Feedback gain matrices.
-
L=lqfbg(phi,gamma,Q,R)
LQFBG Linear quadratic feedback gains.
-
[F,G,H,K,P]=roo(phi,gamma,Cm,...
ROO Discrete-time reduced-order observer design.
-
[phi,gamma]=zohe(A,b,T,D);
ZOHE Zero-order-hold equivalent discrete-time model of an analog system.
-
[phia,gammaa,L1,L2,clp]=lqdts...
LQDTS Digital tracking system design using linear quadratic feedback
-
[phia,gammaa,L1,L2]=dts(A,b,c...
DTS Digital tracking system design.
-
[phia,gammaa,L1,L2]=dts(phi,g...
DTS Digital tracking system design.
-
[sig]=siggen(C,ftime,T)
SIGGEN Signal generation (combinations of step, ramp, sinusoid).
-
[t,x]=intersamp(A,b,x_0,T_1,N...
INTERSAMP Intersample response of a continuous-time system.
-
[tt,yy]=zoh(t,y)
ZOH Zero-order-hold digital-to-analog (D/A) reconstruction.
-
abodep(A,b,c,d,F)
ABODEP Analog (continuous-time) Bode plot.
-
algm(A,B,L);
-
anyq(A,b,c,d)
ANYQ Nyquist plot for analog (continuous-time) system.
-
aphm(A,B,L);
APHM Analog Phase margin.
-
asm(A,B,L)
ASM Analog Stability margins.
-
augm(A,B,L);
AUGM Analog Upper gain margin.
-
bodep(A,b,c,d,T)
BODEP Bode plot for discrete-time system.
-
lgm(A,B,L);
-
nyq(A,b,c,d,npts)
NYQ Nyquist plot for a discrete-time system.
-
phm(A,B,L);
-
sm(A,B,L)
SM Stability margins.
-
sszero(A,B,C,D,zmag)
SSZERO Zeros of a state-space model.
-
ugm(A,B,L);
UGM Upper gain margin.
-
Contents.m
-
alregob.m
-
areg.m
-
aregp.m
-
demo1.m
-
demo2.m
-
etsob.m
-
etsob1.m
-
etsrob.m
-
lregob.m
-
lregrob.m
-
ltsob.m
-
ltsrob.m
-
ltssf.m
-
regob.m
-
regobp.m
-
regobps.m
-
regrob.m
-
regrobp.m
-
regsf.m
-
regsfp.m
-
regsfps.m
-
tsob.m
-
tsobp.m
-
tsrob.m
-
tssf.m
-
tssfp.m
-
regobs
-
regsfs
-
View all files
|
|
| regsf.m |
%REGSF Simulation script for digital state-feedback regulator.
% This script simulates the response of a discrete-time
% regulator to a nonzero initial state.
%
% INPUTS:
%
% phi,gamma ZOH equivalent plant model.
% x0 Initial state of the plant.
% T Sampling interval.
% L Regulator feedback vector.
% ftime Simulate from 0 to ftime seconds.
%
% OUTPUTS:
%
% x Matrix of state vectors, column 1 is x0.
% u Matrix of inputs to the plant.
% t1 Time axis vector for plotting. Use REGSFP to plot results.
% T.Flint 7/92
% Modified by R.J. Vaccaro 10/93,11/98
clear x u;
kf_=ceil(ftime/T);
x(:,1)=x0;
u(:,1)=-L*x0;
for k_=1:kf_-1
x(:,k_+1)=phi*x(:,k_)+gamma*u(:,k_);
u(:,k_+1)=-L*x(:,k_+1);
end
fprintf('REGSF simulation completed. Use REGSFP to plot the results\n')
t1=T*[0:kf_-1];
clear k_ kf_
%_________________________ END OF REGSF.M ___________________________
|
|
Contact us at files@mathworks.com