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
|
|
| [tt,yy]=zoh(t,y)
|
function [tt,yy]=zoh(t,y)
%ZOH Zero-order-hold digital-to-analog (D/A) reconstruction.
% [tt,yy]=zoh(t,y) performs a zero-order-hold reconstruction of the
% sampled-data (vector) signal y. The samples in y correspond to
% sampling times in the vector t. The function returns a new time
% axis and new samples, tt and yy, that are used to obtain a
% piecewise constant plot of the signal(s) in y.
% R.J. Vaccaro 3/00
p=length(y);
if p==length(t)
tt(1:2:2*p-1)=t;
tt(2:2:2*p-2)= t(2:p);
tt(2*p)=t(p)+t(2)-t(1);
yy(:,1:2:2*p-1)=y;
yy(:,2:2:2*p)=y;
else
fprintf('\nError in ZOH: Time axis must have the same number of elements')
fprintf('\nas the signal.\n\n')
end
return
|
|
Contact us at files@mathworks.com