matlab pulstran函数怎么用的啊

来源:百度知道 编辑:UC知道 时间:2024/06/20 22:07:16
有人知道吗?
可以举个例子说明一下吗?
谢谢了

pulstran(t,d,p,fs,w)其中t是时间,d为函数偏移(如y = func(t-d(1)) + func(t-d(2)) + ... );p是函数类型,'gauspuls',表示高斯类型,'tripuls'表示三角类型;fs表示频次;w表示带宽。
官方解释:
pulstran generates pulsetrains from continuous functions or sampled prototype pulses.
y = pulstran(t,d,'func') generatesa pulse train based on samples of a continuous function, 'func',where 'func' is
'gauspuls', for generating a Gaussian-modulatedsinusoidal pulse
'rectpuls', for generating a sampledaperiodic rectangle
'tripuls', for generating a sampledaperiodic triangle
pulstran is evaluated length(d) timesand returns the sum of the evaluations y = func(t-d(1)) + func(t-d(2)) + ...
The function is evaluated over the range of argument valuesspecified in array t, after removinga scalar argument offset taken from the vector d.Note that func must be a vectorized functionthat can take an array t as an argument.
An optional gain factor may be a