readouto.m

来自「里面囊括了基于matlab滤波器设计的各种.m文件」· M 代码 · 共 28 行

M
28
字号
 
 
% h = readouto(filename,char)
% First read data from file(the coefficients of low
% pass filter), then plot the frequency response of
% the filter.
% The data file is come from the Fortran 90
% application or Matlab data file. Data format
% is double precision
% This program is used in orthogonal case of filter
% bank design

function h = readouto(filename)

 fid = fopen(filename,'r');
 x=fread(fid,'real*8');
 x=x(:);
 fclose(fid);

 N = max(size(x));
 h=[x;antieye(N)*x];

% if nargin == 2
%   freqplot(h,1,char)
% end

% END
 

⌨️ 快捷键说明

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