update
Update fuzzy rule using fuzzy inference system
Syntax
Description
Examples
Create a fuzzy rule using a verbose text description.
rule = fisrule("if service is poor and food is delicious then tip is average (1)");
Alternatively, you can specify the same rule using a symbolic text description.
rule = fisrule("service==poor & food==delicious => tip=average")
rule = fisrule with properties: Description: "service==poor & food==delicious => tip=average (1)" Antecedent: [] Consequent: [] Weight: 1 Connection: 1
Before using rule
with a fuzzy system, update the rule Antecedent
and Consequent
properties using the update
function.
fis = readfis("tipper");
rule = update(rule,fis)
rule = fisrule with properties: Description: "service==poor & food==delicious => tip=average (1)" Antecedent: [1 2] Consequent: 2 Weight: 1 Connection: 1
Create a fuzzy rule using a numeric description. Specify that the rule has two input variables.
rule = fisrule([1 2 2 0.5 1],2)
rule = fisrule with properties: Description: "input1==mf1 & input2==mf2 => output1=mf2 (0.5)" Antecedent: [1 2] Consequent: 2 Weight: 0.5000 Connection: 1
Before using rule
with a fuzzy system, update the rule Description
property using the update
function.
fis = readfis("tipper");
rule = update(rule,fis)
rule = fisrule with properties: Description: "service==poor & food==delicious => tip=average (0.5)" Antecedent: [1 2] Consequent: 2 Weight: 0.5000 Connection: 1
Input Arguments
Fuzzy rule, specified as a fisrule
object
or an array of fisrule
objects. If rule
was
created using a:
Text description, its
Antecedent
andConsequent
properties are updated using the input and output membership function indices infis
that correspond to the membership function names in theDescription
property ofrule
Numeric description, its
Description
property is updated using the input and output membership function names infis
that correspond to the membership function indices in theAntecedent
andConsequent
properties ofrule
If you specify rule
as an array of fisrule
objects, then all of the rules are updated accordingly.
Fuzzy inference system, specified as one of these objects:
mamfis
— Mamdani fuzzy inference systemsugfis
— Sugeno fuzzy inference systemmamfistype2
— Type-2 Mamdani fuzzy inference systemsugfistype2
— Type-2 Sugeno fuzzy inference system
Version History
Introduced in R2018b
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)