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

📄 nonoise.m

📁 如果你看过神经模糊与软运算这本书,相信你一定想得到它的源代码.
💻 M
字号:
% plot for noise-free situation% Roger Jang, Aug-10-1995% ============ plot 1: minimum phaseorder1 = 2;			% order of the equalizerorder2 = 3;			% order of the channeldelay = 0;			% delay of the equalizercase_n = 2^(order1+order2-1);	% number of possible input combination% The first column of s is s(t), the second is s(t-1), etcs = zeros(case_n, order1+order2-1);for i=1:case_n,	s(i, :) = dec2othe(i-1, 2, size(s, 2));ends = 2*s - 1; % Elements in s is either 1 or -1.% Channel characteristicsx1 = s(:,1)+0.8*s(:,2)+0.5*s(:,3);x2 = s(:,2)+0.8*s(:,3)+0.5*s(:,4);index1 = find(s(:,1+delay) > 0);index2 = find(s(:,1+delay) < 0);x_min = -3; x_max = 3;y_min = -3; y_max = 3;blackbg;subplot(2,2,1);plot(x1(index1), x2(index1), 'o', x1(index2), x2(index2), 'x');line([-2.2 2.2], [-3 3], 'color', 'c', 'linestyle', ':');xlabel('x(t)'); ylabel('x(t-1)');title('(a) Minimum Phase Channel');axis([x_min x_max y_min y_max]);axis square;% ============ plot 2: nonminimum phaseorder1 = 2;			% order of the equalizerorder2 = 2;			% order of the channeldelay = 0;			% delay of the equalizercase_n = 2^(order1+order2-1);	% number of possible input combination% The first column of s is s(t), the second is s(t-1), etcs = zeros(case_n, order1+order2-1);for i=1:case_n,	s(i, :) = dec2othe(i-1, 2, size(s, 2));ends = 2*s - 1; % Elements in s is either 1 or -1.% Channel characteristicsx1 = 0.5*s(:,1)+s(:,2);x2 = 0.5*s(:,2)+s(:,3);index1 = find(s(:,1+delay) > 0);index2 = find(s(:,1+delay) < 0);x_min = -3; x_max = 3;y_min = -3; y_max = 3;subplot(2,2,2);plot(x1(index1), x2(index1), 'o', x1(index2), x2(index2), 'x');xlabel('x(t)'); ylabel('x(t-1)');title('(b) Nonminimum Phase Channel');axis([x_min x_max y_min y_max]);axis square;% prepare for snapshot%prepshot;

⌨️ 快捷键说明

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