首页->【MATLAB Usage 】

15 0

function [ windout ] = ui_windows_func(N)
%UI_WINDOWS_FUNC 此处显示有关此函数的摘要
%   此处显示详细说明
i=0:1:N-1;
para_tri=1-abs(i-(N-1)/2)./((N-1)/2);%tri
para_han=0.5-0.5*cos(2*pi*i./(N-1));%hann
para_ham=0.54-0.46*cos(2*pi*i./(N-1));%hamm
para_blk=0.42-0.5*cos(2*pi*i./(N-1))+0.08*cos(4*pi*i./(N-1));%blk
para_rec=ones(1,N);
windout=[para_tri;para_han;para_ham;para_blk;para_rec];
end

楼主可见