📄 fuzwiz.mdl
字号:
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "FIS Output MF"
Ports []
Position [165, 131, 240, 189]
FontName "Arial"
ShowPortLabels off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Output MF Eval"
MaskPromptString "FIS structure:|Output:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "fis=@1;j_out=@2;"
MaskInitialization "fuzwizmask(gcb,fis,j_out)"
MaskDisplay "disp('Output MF')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "|"
MaskTabNameString ","
System {
Name "FIS Output MF"
Location [275, 370, 868, 657]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "FIS Rule"
Ports [2, 2]
Position [285, 36, 360, 94]
FontName "Arial"
ShowPortLabels off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "FIS Rule"
MaskPromptString "FIS structure:|Rule:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "fis=@1;j_rule=@2;"
MaskInitialization "fuzwizmask(gcb,fis,j_rule)"
MaskDisplay "disp('Rule')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "|"
MaskTabNameString ","
System {
Name "FIS Rule"
Location [243, 639, 868, 876]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Antecedents"
Position [70, 87, 95, 103]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Consequents"
Position [70, 172, 95, 188]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Weight"
Position [255, 23, 280, 47]
Value "fis.rule(j_rule).weight"
}
Block {
BlockType Product
Name "Weighting"
Ports [2, 1]
Position [325, 74, 350, 101]
}
Block {
BlockType MinMax
Name "andorMethod"
Ports [1, 1]
Position [160, 70, 215, 120]
Function "max"
}
Block {
BlockType MinMax
Name "impMethod"
Ports [2, 1]
Position [420, 137, 480, 193]
Function "min"
Inputs "2"
}
Block {
BlockType Outport
Name "Output"
Position [535, 157, 565, 173]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Firing Strength"
Position [530, 83, 560, 97]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Antecedents"
SrcPort 1
DstBlock "andorMethod"
DstPort 1
}
Line {
SrcBlock "andorMethod"
SrcPort 1
DstBlock "Weighting"
DstPort 2
}
Line {
SrcBlock "Weight"
SrcPort 1
Points [20, 0; 0, 45]
DstBlock "Weighting"
DstPort 1
}
Line {
SrcBlock "Consequents"
SrcPort 1
DstBlock "impMethod"
DstPort 2
}
Line {
SrcBlock "Weighting"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 60]
DstBlock "impMethod"
DstPort 1
}
Branch {
DstBlock "Firing Strength"
DstPort 1
}
}
Line {
SrcBlock "impMethod"
SrcPort 1
DstBlock "Output"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "FIS S-function"
Ports [1, 1]
Position [50, 39, 120, 91]
FontName "Helvetica"
FunctionName "sffis"
Parameters "fis"
SFunctionModules "sfsup"
}
Block {
BlockType SubSystem
Name "FIS Wizard"
Ports [1, 1]
Position [165, 38, 240, 92]
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "FIS Wizard"
MaskPromptString "FIS structure:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "fis=@1;"
MaskInitialization "fuzwizmask(gcb,fis);"
MaskDisplay "disp('FIS')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "FIS Wizard"
Location [211, 340, 900, 632]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 102, 60, 118]
FontName "Helvetica"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Outport
Name "Out1"
Position [635, 102, 665, 118]
FontName "Helvetica"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "wtaver Defuzz"
Ports [2, 1]
Position [285, 226, 360, 279]
FontName "Helvetica"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "WTAVER Defuzzification"
MaskDisplay "disp('WTAVER')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "wtaver Defuzz"
Location [227, 62, 792, 316]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "MF Values"
Position [55, 30, 75, 50]
FontName "Helvetica"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Total Firing Strength"
Position [50, 100, 70, 120]
FontName "Helvetica"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Action: One"
Ports [0, 1, 0, 0, 0, 0, 0, 1]
Position [290, 117, 360, 153]
SourceBlock "fuzwiz/Centroid of Area/Action: One"
SourceType "SubSystem"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Action: u1"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [295, 197, 365, 233]
SourceBlock "fuzwiz/Centroid of Area/Action: u1"
SourceType "SubSystem"
ShowPortLabels on
}
Block {
BlockType If
Name "If"
Ports [1, 2]
Position [130, 91, 230, 129]
IfExpression "u1 < 0"
}
Block {
BlockType Merge
Name "Merge"
Ports [2, 1]
Position [390, 125, 430, 165]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [450, 32, 480, 63]
FontName "Helvetica"
Inputs "*/"
}
Block {
BlockType Sum
Name "Sum1"
Ports [1, 1]
Position [195, 30, 215, 50]
ShowName off
FontName "Helvetica"
IconShape "round"
Inputs "1"
}
Block {
BlockType Outport
Name "Output Value"
Position [505, 43, 535, 57]
FontName "Helvetica"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MF Values"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Output Value"
DstPort 1
}
Line {
SrcBlock "Total Firing Strength"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "If"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Action: u1"
DstPort 1
}
}
Line {
SrcBlock "If"
SrcPort 1
Points [90, 0]
DstBlock "Action: One"
DstPort ifaction
}
Line {
SrcBlock "If"
SrcPort 2
Points [50, 0; 0, 62]
DstBlock "Action: u1"
DstPort ifaction
}
Line {
SrcBlock "Action: One"
SrcPort 1
DstBlock "Merge"
DstPort 1
}
Line {
SrcBlock "Action: u1"
SrcPort 1
Points [0, -60]
DstBlock "Merge"
DstPort 2
}
Line {
SrcBlock "Merge"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "wtsum Defuzz"
Ports [1, 1]
Position [170, 224, 245, 276]
FontName "Helvetica"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "WTSUM Defuzzification"
MaskDisplay "disp('WTSUM')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "wtsum Defuzz"
Location [439, 418, 869, 550]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "MF Values"
Position [60, 50, 80, 70]
FontName "Helvetica"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Sum1"
Ports [1, 1]
Position [230, 50, 250, 70]
ShowName off
FontName "Helvetica"
IconShape "round"
Inputs "1"
}
Block {
BlockType Outport
Name "Output Value"
Position [355, 53, 385, 67]
FontName "Helvetica"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MF Values"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Output Value"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -