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

📄 disp_mf.m

📁 如果你看过神经模糊与软运算这本书,相信你一定想得到它的源代码.
💻 M
字号:
% Illustration of various MFs
% J.-S. Roger Jang

x = 0:100;

mf = tri_mf(x, [20, 60, 80]);
subplot(221); plot(x, mf);
axis([-inf inf 0 1.2]);
ylabel('Membership Grades'); title('(a) Triangular MF');
%set(gca, 'xticklabels', []);
set(gca, 'xtick', [0 20 40 60 80 100]);

mf = trap_mf(x, [10, 20, 60, 95]);
subplot(222); plot(x, mf);
axis([-inf inf 0 1.2]);
ylabel('Membership Grades'); title('(b) Trapezoidal MF');
%set(gca, 'xticklabels', []);
set(gca, 'xtick', [0 20 40 60 80 100]);

mf = gauss_mf(x, [50, 20]);
subplot(223); plot(x, mf);
axis([-inf inf 0 1.2]);
ylabel('Membership Grades'); title('(c) Gaussian MF');
%set(gca, 'xticklabels', []);
set(gca, 'xtick', [0 20 40 60 80 100]);

mf = gbell_mf(x, [20, 4, 50]);
subplot(224); plot(x, mf);
axis([-inf inf 0 1.2]);
ylabel('Membership Grades'); title('(d) Generalized Bell MF');
%set(gca, 'xticklabels', []);
set(gca, 'xtick', [0 20 40 60 80 100]);

⌨️ 快捷键说明

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