|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
这个函数在MATLAB的帮助文档中,称为采样非周期矩形波(Sampled aperiodic rectangle),说白了,也就是一个矩形脉冲,你可以通过该函数控制脉冲的位置,以及脉冲的宽度等。
" d! ~7 o1 W) q+ r, j, H- ]) s5 L; d4 t
语法:
1 u) t% b L: s1 D4 G( U" Z4 \
" u4 r x- M7 w( F( w
5 n8 }' N/ v5 w. N' x& A/ \3 p; i. R
+ l( t2 Z4 r$ @0 M: ?5 m% U6 i
帮助文档对这两种语法形式的描述为:
+ i2 _7 z. S0 w& x: Y0 d' C+ i
1 @) b5 z# a! w* Q# Uy = rectpuls(t) returns a continuous, aperiodic, unity-height rectangular pulse at the sample times indicated in array t, centered about t = 0 and with a default width of 1. Note that the interval of nonzero amplitude is defined to be open on the right, that is, rectpuls(-0.5) = 1 while rectpuls(0.5) = 0.* N) q, y4 v4 h" Q9 _7 `4 _
/ _& N& Q! ~& F3 K9 D- q; R; N; `y = rectpuls(t,w) generates a rectangle of width w.
% u" G1 D t; h" Z( Y" ~7 `+ u/ o/ g# |$ c$ R) w" d- K) Z2 P
不仔细分析还真的让人看不太懂,我简单的理解下,然后用例子说明:
}: v7 R" F; G9 ]) d8 T! F
2 M8 d# G0 y6 ~# z" d/ h" `y = rectpuls(t)返回一个连续的、非周期的、单位高度的矩形脉冲,数组t指示了矩形脉冲显示在多大的一个时间范围内,矩形脉冲的中心位于 t = 0时刻,默认的脉宽为1.最后需要说明的是,矩形脉冲的非零幅度值位于区间[-0.5,0.5)内,注意是左闭右开。
$ F) M, A" A- S5 d/ \
$ R. v, n' _2 \0 L: u如下:' A% N" M0 u, \ p) |" W
3 Z- e; f/ a1 \; C+ A$ U2 x4 f1 q P o1 o8 X6 @4 O% G
) r. x! i3 Q; @- o% j5 s0 f) T' D9 d) G3 q8 b) ]) K0 f7 l" M
% ?" |5 N7 b8 W- j
4 o) \- J6 j q( m3 H8 B5 L
U( [6 Q( j: ?- T f' O) y# c. a% {/ D
6 l' t4 L' E/ O9 L) C& o |
|