# 数字信号处理使用MATLAB子函数调用

function []=f1(..)

.............

function []=f2(....)

..............

function []=f3(......)

...........

end

end

end

function r=fs(x1,y1)
global c1;
c1=x1;
r=x1+y1+f2(2,2)+f3(2,2);

function m=f2(x2,y2)
global c1;
fprintf('%d',c1);
m=x2+y2+c1;

function p=f3(x3,y3)
global c1;
p=x3+y3+c1;

function [y,m]=yijia1(x,n)
n=-2:10;
x=[1:7,6:-1:1];
[x1,n1]=sigshift(x,n,5);
[x2,n2]=sigshift(x,n,-4);
subplot(2,2,1);stem(m,y);
[x3,n3]=sigfold(x,n);[x3,n3]=sigshift(x3,n3,3);
[x4,n4]=sigshift(x,n,2);[x4,n4]=sigmult(x,n,x4,n4);
subplot(2,2,2);stem(k,z);
function [y,n]=sigfold(x,n)
n=-2:10;
x = [1:7,6:-1:1];
y=fliplr(x);n=-fliplr(n);
function [y,n]=sigshift(x,m,n0)
n=-2:10;
x=[1:7,6:-1:1];
n=m+n0;y=x;
n=-2:10;
x=[1:7,6:-1:1];
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;
function [y,n] = sigmult(x1,n1,x2,n2)
n=-2:10;
x=[1:7,6:-1:1];
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;

• 本文已收录于以下专栏：

举报原因： 您举报文章：数字信号处理使用MATLAB子函数调用 色情 政治 抄袭 广告 招聘 骂人 其他 (最多只允许输入30个字)