comple.m

来自「a collection of M-files to study concept」· M 代码 · 共 26 行

M
26
字号
function [notdA] = comple(dA)
%COMPLE:  This function operate as a quantifier on matrix of fuzzy values
%         A, and will  returns the  membership  function  related to
%         'comple A'.
%
%                            [compleA] = COMPLE(A)
%
%      					See also UNION and INTERSEC. 
%
%	  Note: This function is exactly the same as NOT.

% FISMAT: Fuzzy Inference Systems toolbox for MATLAB
% (c) A. Lotfi, University of Queensland (Email: lotfia@s1.elec.uq.oz.au)
% 13-10-93
% The program has been tested on MATLAB version 4.1, Sun workstation.

%                                              See also UNION and INTERSEC.



if (max(max(dA)) > 1) | (min(min(dA)) < 0)
error('Grade of membership function should not be more than one or less than zero.')
end

notdA=1-dA;

⌨️ 快捷键说明

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