rmmf
(Removed) Remove membership function from fuzzy inference system
rmmf
has been removed. Use removeMF
instead. For
more information, see Version History.
Description
Examples
Remove Membership Function From Variable
Create a fuzzy inference system.
fis = newfis('mysys');
Add an input variable with a single membership function to the system.
fis = addvar(fis,'input','temperature',[0 100]); fis = addmf(fis,'input',1,'cold','trimf',[0 30 60]);
View the variable properties.
getfis(fis,'input',1)
ans = struct with fields:
Name: 'temperature'
NumMFs: 1
mf1: 'cold'
range: [0 100]
Remove the membership function. To do so, remove membership function
1
from input 1
.
fis = rmmf(fis,'input',1,'mf',1);
View the variable properties.
getfis(fis,'input',1)
ans = struct with fields:
Name: 'temperature'
NumMFs: 0
range: [0 100]
The variable now has no membership function.
Input Arguments
infis
— Fuzzy system
mamfis
object | sugfis
object
Fuzzy system, specified as a FIS object.
varType
— Variable type
'input'
| 'output'
Variable type, specified as either 'input'
or
'output'
.
varIndex
— Variable index
positive integer
Variable index, specified as a positive integer.
mfIndex
— Membership function index
positive integer
Membership function index, specified as a positive integer.
Output Arguments
outfis
— Updated fuzzy system
mamfis
object | sugfis
object
Updated fuzzy system, returned as a FIS object.
Version History
Introduced before R2006aR2024b: Removed
rmmf
has been removed. Use removeMF
instead.
The following table shows some typical usages of rmmf
and how to
update your code to use removeMF
instead. Previously, you specified the
index of the variable from which you wanted to remove the membership function and the index
of the membership function that you wanted to remove. Now, to remove a membership function,
specify the variable name and the membership function name.
If your code has this form: | Use this code instead: |
---|---|
fis = rmmf(fis,'input',1,'mf',1) |
fis = removeMF(fis,"service","poor") |
fis = rmmf(fis,'output',1,'mf',1) |
fis = removeMF(fis,"tip","cheap") |
Previously, you had to delete any references to a membership function you wanted to
remove from the rule set. removeMF
automatically removes these
references from the rule set of your fuzzy system.
R2019b: Warns
rmmf
issues a warning that it will be removed in a future
release.
R2018b: To be removed
rmmf
runs without warning, but Code Analyzer indicates that
rmmf
will be removed in a future release.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)