cmb_fn.m

来自「连续与离散信号系统的Matlab仿真示例代码.」· M 代码 · 共 11 行

M
11
字号
%	cmb_fn(t,t_rep,t_width,delta).  This function generates a comb of unit impulses centered%	at t = 0 spaced by t_rep and of total duration t_width.%function y = cmb_fn(t,t_rep,t_width,delta)L = length(t);N = round(t_width/t_rep+1);y = zeros(size(t));for n = 1:N	y=y+impls_fn(t-(n-1)*t_rep+(N-1)*t_rep/2,delta);end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?