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

📄 project.m

📁 .m source file about soft compute.
💻 M
字号:
% Illustration of projection operation% J.-S. Roger Jang, 1993xx = -10:10;yy = -10:10;[x,y] = meshgrid(xx, yy);z = exp(-x.*x/10 - y.*y/30);[m,n] = size(z);subplot(331); mesh(x, y, z);view(-40, 30);xlabel('X'); ylabel('Y'); % zlabel('membership grades');set(gca, 'box', 'on');title('(a) A Two-dimensional MF');proj_x = z;proj_y = z;[maximum, index]=max(z);for i=1:m,	for j=1:n,		if i > index(j),			proj_x(i,j) = maximum(j);		end	endendsubplot(332); mesh(x, y, proj_x);axis('ij');view(-40, 30);xlabel('X'); ylabel('Y'); % zlabel('membership grades');set(gca, 'box', 'on');title('(b) Projection onto X');[maximum, index]=max(z');for i=1:m,	for j=1:n,		if j < index(i),			proj_y(i,j) = maximum(i);		end	endendsubplot(333); mesh(x, y, proj_y);axis('ij');view(-40, 30);xlabel('X'); ylabel('Y'); % zlabel('membership grades');set(gca, 'box', 'on');title('(c) Projection onto Y');% get rid of tick labelsh = findobj(gcf, 'type', 'axes');set(h, 'xticklabels', []);set(h, 'yticklabels', []);

⌨️ 快捷键说明

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