|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
这个函数在MATLAB的帮助文档中,称为采样非周期矩形波(Sampled aperiodic rectangle),说白了,也就是一个矩形脉冲,你可以通过该函数控制脉冲的位置,以及脉冲的宽度等。) t5 }1 s$ q( e# ^: d( ?, [, o( l
8 i0 B' V3 O( N/ s' q语法:
' x$ k7 K0 J0 A& F! z7 u9 N# x: I9 u" g
5 Q/ f9 R) N; L- Y/ m# t9 x
4 g, w% B- l, R+ x
帮助文档对这两种语法形式的描述为:$ P4 e; N/ R; c
% A4 v( f) T" y6 c. v
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.# S m9 a' o- Y6 {# P |
$ V) I8 ^, k1 D# ey = rectpuls(t,w) generates a rectangle of width w.
5 A! ^, s8 p; r3 d* ^' H6 I9 y5 g
% Z( p. d. `# G. E' M5 A不仔细分析还真的让人看不太懂,我简单的理解下,然后用例子说明:) y0 E! Z1 r+ u6 x: _& T
0 I1 j5 A ]) o4 E# ^% p) f
y = rectpuls(t)返回一个连续的、非周期的、单位高度的矩形脉冲,数组t指示了矩形脉冲显示在多大的一个时间范围内,矩形脉冲的中心位于 t = 0时刻,默认的脉宽为1.最后需要说明的是,矩形脉冲的非零幅度值位于区间[-0.5,0.5)内,注意是左闭右开。
# t/ Y g/ _% B; v; {5 z0 S' ]
; _1 J: {) W5 e+ h7 I, a8 B如下:/ ]3 n9 X% g! q
. M R) g1 `9 t+ T; o( ^; I
$ C1 ?! W/ ]- |
2 C9 V1 c/ F1 S/ G* P9 F. ~0 W( {/ e. r- ]8 T% R
% f4 P& ~( V2 T& r$ c9 [8 j1 o& K" w- |' K% T7 G
# C+ y, ]! Y; _7 ? X$ }/ J
+ \( j4 C- D3 o: b$ `- G* s
3 ?# ~# j9 f: ~& A6 |2 s% U |
|