lingmf.m
来自「如果你看过神经模糊与软运算这本书,相信你一定想得到它的源代码.」· M 代码 · 共 21 行
M
21 行
%genfig('MFs for linguistic labels');x = (0:90)';mf1 = gbell_mf(x, [30, 5, 0]);mf2 = gbell_mf(x, [15, 3, 45]);mf3 = gbell_mf(x, [30, 5, 90]);subplot(211);plot(x, [mf1 mf2 mf3]);axis([-inf inf 0 1.4]);xlabel('X = Age');ylabel('Membership Grades');h(1) = text(15, 1.15, 'Young');h(2) = text(45, 1.15, 'Middle Aged');h(3) = text(75, 1.15, 'Old');set(h, 'horizon', 'center');cyclesty;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?