|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
这个函数在MATLAB的帮助文档中,称为采样非周期矩形波(Sampled aperiodic rectangle),说白了,也就是一个矩形脉冲,你可以通过该函数控制脉冲的位置,以及脉冲的宽度等。1 T" {8 a9 f' V& Q8 x- w! o
: P1 W9 n. I3 h0 T- v& l) s' W
语法:
( A9 ^0 {. H% D# I3 p" F; d4 y9 r4 }
! d3 R" N; o7 `, Y8 I, ~
* L) y. A- e0 h% p4 G帮助文档对这两种语法形式的描述为:- j% E) k2 _. \0 O
. t, D4 x, {, x7 ] D5 H
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." I8 u/ F3 k) }3 T" c" S. i
, n+ q7 f- ~7 h. k6 ~- n9 o5 z
y = rectpuls(t,w) generates a rectangle of width w.% {0 Q8 `! H h7 G7 P- \
7 {" f. s. Z2 `9 H不仔细分析还真的让人看不太懂,我简单的理解下,然后用例子说明: N" A5 G% m7 M4 L# \0 G
1 ]# o: ~# \7 j& z% T/ p3 K) [7 R
y = rectpuls(t)返回一个连续的、非周期的、单位高度的矩形脉冲,数组t指示了矩形脉冲显示在多大的一个时间范围内,矩形脉冲的中心位于 t = 0时刻,默认的脉宽为1.最后需要说明的是,矩形脉冲的非零幅度值位于区间[-0.5,0.5)内,注意是左闭右开。 ]9 j9 x2 \7 N4 ~! d
: ^* x9 ~# w- S8 z9 n2 P& E如下:
: p5 u( x4 l1 N: K% x) j$ [+ S. I7 x3 T9 t' k5 ]1 o
7 `0 [7 J+ v% }. o) a; k
, _7 z7 `- S8 c. b
$ H, J D. j! Y' f* H4 |- u2 v' g) L9 P# j& X: U0 P
6 w6 l/ ^" t [! u# b; A2 y% F! f9 f1 h' N5 P, ?1 o
& S. |1 C& r- Y W
* _* Q0 l4 O: {3 Z$ O2 K2 y
|
|