⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sigmult.m

📁 the file contain many matlab signal source code and many example .
💻 M
字号:
function [y,n]=sigmult(x1,n1,x2,n2)
% implements y(n)=x1(n)*x2(n)
% ----------------
% [y,n]=sigmult(x1,n1,x2,n2)
% y=product sequence over n,which includes n1 and n2
% x1=first sequence over n1
% x2=second sequence over n2(n2 can be different from n1)
%
n=min(min(n1),min(n2)):max(max(n1),max(n2));
y1=zeros(1,length(n));y2=y1;
y1(find((n>=min(n1))&(n<=max(n1))==1))=x1;
y2(find((n>=min(n2))&(n<=max(n2))==1))=x2;
y=y1.*y2;

⌨️ 快捷键说明

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