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

📄 mf.m

📁 模糊逻辑工具箱 模糊逻辑工具箱 模糊逻辑工具箱 模糊逻辑工具箱 模糊逻辑工具箱
💻 M
字号:
function out=mf(x,y)
% MF Fuzzy arithmetics object constructor
%    OUT = MF(X, Y) returns a fuzzy arithmetics object. Fuzzy arithmetics 
%    object overwrites MATLAB '+', '-', '*', and '/' operation with fuzzy
%    arithmetic oprations.
%
%    See also
%        fuzarith

% Copyright (c) 1994-98 by The MathWorks, Inc.
% $Revision: 1.2 $

%use colume vector
if size(x,1)<size(x,2),
    x=x';
end
if size(y,1)<size(y,2),
    y=y';
end
if size(x, 1)~=size(y, 1)
  disp('x and y should have the same size for mf object');
  out=[];
  return
end
out.x=x;
out.y=y;
out = class(out,'mf');

⌨️ 快捷键说明

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