📄 fuzblock.mdl
字号:
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [505, 162, 535, 193]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [505, 232, 535, 263]
ShowName off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [505, 347, 535, 378]
ShowName off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [505, 417, 535, 448]
ShowName off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [595, 282, 625, 313]
ShowName off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [240, 167, 270, 198]
ShowName off
Operator "<"
ZeroCross off
Port {
PortNumber 1
Name "x<mu1"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [240, 352, 270, 383]
ShowName off
Operator ">"
ZeroCross off
Port {
PortNumber 1
Name "x>mu2"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [550, 205, 570, 225]
NamePlacement "alternate"
ShowName off
IconShape "round"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [545, 385, 565, 405]
NamePlacement "alternate"
ShowName off
IconShape "round"
}
Block {
BlockType Constant
Name "mu1"
Position [95, 125, 125, 155]
ShowName off
Value "mu1"
}
Block {
BlockType Constant
Name "mu2"
Position [95, 310, 125, 340]
ShowName off
Value "mu2"
}
Block {
BlockType Constant
Name "sigma1"
Position [35, 105, 80, 135]
ShowName off
Value "sigma1"
}
Block {
BlockType Constant
Name "sigma2"
Position [35, 290, 80, 320]
ShowName off
Value "sigma2"
}
Block {
BlockType Outport
Name "MF"
Position [650, 292, 665, 308]
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "MF"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [10, 0]
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0]
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [15, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [15, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Product3"
DstPort 2
}
Line {
Name "mu1>=x"
Labels [0, 0]
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [0, 5]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Gaussian MF2"
SrcPort 1
Points [15, 0; 0, 50]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
Name "mu1<=x"
Labels [0, 0]
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, 5]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Gaussian MF1"
SrcPort 1
Points [15, 0; 0, 50]
DstBlock "Product"
DstPort 1
}
Line {
Name "x>mu2"
Labels [0, 0]
SrcBlock "Relational\nOperator2"
SrcPort 1
Points [180, 0]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
DstBlock "Logical\nOperator1"
DstPort 1
}
}
Line {
SrcBlock "mu2"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "Gaussian MF2"
DstPort 3
}
Branch {
Points [0, 50]
DstBlock "Relational\nOperator2"
DstPort 2
}
}
Line {
SrcBlock "sigma2"
SrcPort 1
DstBlock "Gaussian MF2"
DstPort 2
}
Line {
Name "x<mu1"
Labels [0, 0]
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [180, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "mu1"
SrcPort 1
Points [55, 0]
Branch {
Points [0, 50]
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
DstBlock "Gaussian MF1"
DstPort 3
}
}
Line {
SrcBlock "x"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 120]
Branch {
Points [0, 110]
Branch {
Points [0, 75]
DstBlock "Relational\nOperator2"
DstPort 1
}
Branch {
DstBlock "Gaussian MF2"
DstPort 1
}
}
Branch {
DstBlock "Relational\nOperator1"
DstPort 1
}
}
Branch {
Points [0, 45]
DstBlock "Gaussian MF1"
DstPort 1
}
}
Line {
SrcBlock "sigma1"
SrcPort 1
DstBlock "Gaussian MF1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Generalized Bell MF"
Ports [1, 1]
Position [260, 106, 305, 154]
TreatAsAtomicUnit off
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 "web(['file:///' docroot '/toolbox/fuzzy/mem"
"bershipfunctionslibrar.html']);"
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"
System {
Name "Generalized Bell MF"
Location [259, 448, 857, 763]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [30, 27, 50, 43]
}
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 "*/"
}
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"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
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]
}
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
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -