not.m

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

M
22
字号
function [dnotA] = not(dA)
%NOT:  This function operate as a quantifier on matrix of fuzzy values
%      A, and will  returns the  membership  function  related to
%      'not A'.
%
%                            [notA] = NOT(A)
%
%      See also VERY and MORELESS. 


% 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.

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


dnotA=ones(size(dA))-dA;

⌨️ 快捷键说明

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