conv_m.m

来自「the file contain many matlab signal sour」· M 代码 · 共 15 行

M
15
字号
function [y,ny]=conv_m(x,nx,h,nh)
% Modified convolution routine for signal processing 
%----------------------
% [y,ny]=conv_m(x,nx,h,nh)
% y=convolution result
% ny=support of y
% x=first signal on support nx
% nx=support of x
% h=second signal on support nh
% nh=support of h
% 
nyb=nx(1)+nh(1);nye=nx(length(x))+nh(length(h));
ny=[nyb:nye];
y=conv(x,h);

⌨️ 快捷键说明

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