|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
这个函数在MATLAB的帮助文档中,称为采样非周期矩形波(Sampled aperiodic rectangle),说白了,也就是一个矩形脉冲,你可以通过该函数控制脉冲的位置,以及脉冲的宽度等。8 c: ], I+ P: [3 z
/ q+ k! d8 N+ e; P
语法:
* q" r6 F) O# ~+ l4 q2 c3 O0 B2 ^ Q5 b
# O+ \ y, j0 `) I
# r$ F: T+ k% E$ V D$ M4 t帮助文档对这两种语法形式的描述为:5 @ `7 d& P% d6 P) g5 e: ?
! R$ E" ?3 K1 |$ j2 e0 d; ~( p6 _
y = 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.0 q2 X4 c" m% C$ A2 o3 I: G# x
: l" w: @' S- K" uy = rectpuls(t,w) generates a rectangle of width w.6 C, f J& u; q' s
1 E$ W7 _5 ?( a
不仔细分析还真的让人看不太懂,我简单的理解下,然后用例子说明:
' M0 n! R+ x, N v" C9 e
- D# y' S4 O" s+ D" O- Jy = rectpuls(t)返回一个连续的、非周期的、单位高度的矩形脉冲,数组t指示了矩形脉冲显示在多大的一个时间范围内,矩形脉冲的中心位于 t = 0时刻,默认的脉宽为1.最后需要说明的是,矩形脉冲的非零幅度值位于区间[-0.5,0.5)内,注意是左闭右开。# U0 h0 a' l: N2 ?9 N
& b9 K: P4 o4 L2 D: w ^ \如下:( |3 o! }7 S& V. d) B' [
( R, B5 ? [2 b' G+ d, @) ]" q+ C; d2 M' _( o- j
0 J- b, a4 M f
+ T8 z- D4 G& q. K7 U) X. n9 g4 J! q _9 T% h3 q' y, p
* R. H' L& H0 l4 L' W! A: h' A* A) `
`1 O: A1 h- C' C6 B3 l+ C
) r# o/ m% o4 [3 J
) M& e8 K3 y% e/ j, ~3 a2 x |
|