📄 fuzblock.mdl
字号:
Block {
BlockType SubSystem
Name "Generalized Bell MF"
Ports [1, 1]
Position [260, 106, 305, 154]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "gbellmf"
MaskDescription "Generalized bell membership function given "
"by\n\n f ( x ) = 1 / ( 1 + | ( x - c) / a | ^ 2b )\n\nThe parameters a"
" and b vary the width of the curve and the parameter c locates the center of "
"the curve. The parameter b should be positive."
MaskHelp "eval('doc gbellmf')"
MaskPromptString "a:|b:|c:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "a=@1;b=@2;c=@3;"
MaskInitialization "x=-10:0.5:10;\nparams=[5 4 0];\ny=gbellmf(x"
",params);"
MaskDisplay "plot(x,y);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|4|0"
MaskTabNameString ",,"
System {
Name "Generalized Bell MF"
Location [259, 448, 857, 763]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [30, 27, 50, 43]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Math
Name "Exponent\n(gbellmf)"
Ports [2, 1]
Position [375, 37, 405, 68]
Operator "pow"
}
Block {
BlockType Math
Name "Inverse\n(gbellmf)"
Ports [1, 1]
Position [500, 39, 530, 71]
Operator "reciprocal"
}
Block {
BlockType Constant
Name "One"
Position [145, 244, 165, 266]
}
Block {
BlockType Product
Name "Product \n(gbellmf)"
Ports [2, 1]
Position [175, 27, 205, 58]
Inputs "*/"
RndMeth "Floor"
}
Block {
BlockType Math
Name "Squaring\n(gbellmf)"
Ports [1, 1]
Position [285, 29, 315, 61]
Operator "square"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [95, 25, 115, 45]
ShowName off
IconShape "round"
Inputs "|+-"
Port {
PortNumber 1
Name "x-c"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [440, 45, 460, 65]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Constant
Name "a"
Position [25, 125, 55, 155]
Value "a"
}
Block {
BlockType Constant
Name "b"
Position [25, 180, 55, 210]
Value "b"
}
Block {
BlockType Constant
Name "c"
Position [25, 65, 55, 95]
Value "c"
}
Block {
BlockType Outport
Name "MF"
Position [560, 49, 575, 61]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Labels [1, 0]
SrcBlock "b"
SrcPort 1
Points [300, 0]
DstBlock "Exponent\n(gbellmf)"
DstPort 2
}
Line {
SrcBlock "Squaring\n(gbellmf)"
SrcPort 1
DstBlock "Exponent\n(gbellmf)"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Product \n(gbellmf)"
SrcPort 1
DstBlock "Squaring\n(gbellmf)"
DstPort 1
}
Line {
SrcBlock "a"
SrcPort 1
Points [90, 0; 0, -90]
DstBlock "Product \n(gbellmf)"
DstPort 2
}
Line {
Name "x-c"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Product \n(gbellmf)"
DstPort 1
}
Line {
SrcBlock "c"
SrcPort 1
Points [45, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Exponent\n(gbellmf)"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "One"
SrcPort 1
Points [280, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Inverse\n(gbellmf)"
DstPort 1
}
Line {
SrcBlock "Inverse\n(gbellmf)"
SrcPort 1
DstBlock "MF"
DstPort 1
}
Annotation {
Name "(x-c)/a"
Position [257, 41]
}
}
}
Block {
BlockType SubSystem
Name "Pi-shaped MF"
Ports [1, 1]
Position [155, 189, 200, 241]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "pimf"
MaskDescription "Pi-shaped membership function.\n\nThe param"
"eters a and d set the left and right base point or \"feet\" of the curve. T"
"he parameters b and c set the left and right top point or \"shoulders\" of th"
"e curve."
MaskHelp "eval('doc pimf')"
MaskPromptString "Left base point a:|Left top point b:|Right "
"top point c:|Right base point d:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "a=@1;b=@2;c=@3;d=@4;"
MaskInitialization "x=-10:0.5:10;\nparams=[-9 -7 2 8];\ny=pimf("
"x,params);"
MaskDisplay "plot(x,y);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-9|-7|2|8"
MaskTabNameString ",,,"
System {
Name "Pi-shaped MF"
Location [477, 552, 1115, 819]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "95"
Block {
BlockType Inport
Name "x"
Position [30, 47, 50, 63]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant4"
Position [345, 105, 365, 125]
ShowName off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [505, 52, 535, 83]
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [420, 50, 440, 70]
ShowName off
Inputs "-+"
Port {
PortNumber 1
Name "S MF"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Z-shaped MF"
Ports [1, 1]
Position [260, 31, 305, 79]
SourceBlock "fuzblock/Membership \nFunctions/Z-shape"
"d MF"
SourceType "zmf"
ShowPortLabels "on"
a "a"
b "b"
}
Block {
BlockType Reference
Name "Z-shaped MF1"
Ports [1, 1]
Position [265, 146, 310, 194]
SourceBlock "fuzblock/Membership \nFunctions/Z-shape"
"d MF"
SourceType "zmf"
ShowPortLabels "on"
a "c"
b "d"
Port {
PortNumber 1
Name "Z MF"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Outport
Name "Pi MF"
Position [590, 62, 605, 78]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Pi MF"
DstPort 1
}
Line {
Name "Z MF"
Labels [0, 0]
SrcBlock "Z-shaped MF1"
SrcPort 1
Points [160, 0; 0, -95]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "x"
SrcPort 1
Points [60, 0]
Branch {
DstBlock "Z-shaped MF"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Z-shaped MF1"
DstPort 1
}
}
Line {
SrcBlock "Z-shaped MF"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant4"
SrcPort 1
Points [0, -50]
DstBlock "Sum"
DstPort 2
}
Line {
Name "S MF"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Probabilistic OR"
Ports [1, 1]
Position [405, 53, 455, 107]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "probor OR method"
MaskDescription "Probabilistic OR function.\n\n y = 1"
" - prod( 1 - x )\n\nThis block outputs the probabilistic OR value for the vec"
"tor signal input."
MaskHelp "eval('doc probor')"
MaskDisplay "disp('Probor')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Probabilistic OR"
Location [453, 458, 1018, 697]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [55, 43, 85, 57]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant4"
Position [55, 125, 85, 155]
}
Block {
BlockType Product
Name "Product"
Ports [1, 1]
Position [230, 43, 275, 77]
Inputs "1"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 41, 180, 74]
NamePlacement "alternate"
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [330, 51, 375, 84]
NamePlacement "alternate"
ShowName off
Inputs "-+"
}
Block {
BlockType Outport
Name "Out1"
Position [460, 63, 490, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant4"
SrcPort 1
Points [30, 0]
Branch {
Points [180, 0; 0, -65]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Sum"
DstPort 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -