📄 fuzblock.mdl
字号:
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "mu"
SrcPort 1
Points [45, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "x-c"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Product\n(gaussmf)"
DstPort 1
}
Line {
SrcBlock "sigma"
SrcPort 1
Points [80, 0; 0, -90]
DstBlock "Product\n(gaussmf)"
DstPort 2
}
Line {
SrcBlock "Exponential\n(gaussmf)"
SrcPort 1
DstBlock "MF"
DstPort 1
}
Line {
SrcBlock "Squaring\n(gaussmf)"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "2b"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
DstBlock "Exponential\n(gaussmf)"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Product\n(gaussmf)"
SrcPort 1
DstBlock "Squaring\n(gaussmf)"
DstPort 1
}
Annotation {
Name "(x-mu)/sigma"
Position [227, 51]
}
}
}
Block {
BlockType SubSystem
Name "Gaussian2 MF"
Ports [1, 1]
Position [155, 105, 200, 155]
TreatAsAtomicUnit off
MaskType "gauss2mf"
MaskDescription "\"Combination of two Gaussians\" membership"
" function. The two Gaussian functions are given by\n\n fk ( x ) = exp "
"^ ( ( - 0.5 ( x - ck) ^ 2 ) / sigmak ^ 2 ) k=1,2\n\nThe parameters c1 and "
"sigma1 are the mean and variance defining the leftmost curve. The parameters "
"c2 and sigma2 are the mean and variance defining the rightmost curve."
MaskHelp "web(['file:///' docroot '/toolbox/fuzzy/mem"
"bershipfunctionslibrar.html']);"
MaskPromptString "Variance for left curve sigma1:|Mean for le"
"ft curve c1:|Variance for right curve sigma2:|Mean for right curve c2:"
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 "sigma1=@1;mu1=@2;sigma2=@3;mu2=@4;"
MaskInitialization "x=-10:0.5:10;\nparams=[3 -1 1 5];\ny=gauss2"
"mf(x,params);"
MaskDisplay "plot(x,y);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3|-1|1|5"
System {
Name "Gaussian2 MF"
Location [117, 93, 818, 707]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "93"
Block {
BlockType Inport
Name "x"
Position [205, 30, 225, 50]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType Constant
Name "Constant1"
Position [360, 246, 380, 264]
ShowName off
}
Block {
BlockType Constant
Name "Constant2"
Position [360, 431, 380, 449]
ShowName off
}
Block {
BlockType SubSystem
Name "Gaussian MF1"
Ports [3, 1]
Position [375, 90, 435, 150]
TreatAsAtomicUnit off
System {
Name "Gaussian MF1"
Location [116, 411, 644, 557]
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, 18, 60, 32]
}
Block {
BlockType Inport
Name "sigma"
Position [105, 93, 135, 107]
Port "2"
}
Block {
BlockType Inport
Name "mu"
Position [35, 73, 65, 87]
Port "3"
}
Block {
BlockType Gain
Name "Gain"
Position [330, 30, 360, 60]
ShowName off
Gain "-0.5"
Port {
PortNumber 1
Name "2b"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [400, 29, 430, 61]
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [260, 29, 290, 61]
Operator "square"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [165, 27, 195, 58]
Inputs "*/"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 25, 100, 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 Outport
Name "mf"
Position [455, 38, 485, 52]
}
Line {
SrcBlock "mu"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "sigma"
SrcPort 1
Points [0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "mf"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "x-c"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "2b"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Annotation {
Name "(x-mu)/sigma"
Position [212, 51]
}
}
}
Block {
BlockType SubSystem
Name "Gaussian MF2"
Ports [3, 1]
Position [375, 275, 435, 335]
TreatAsAtomicUnit off
System {
Name "Gaussian MF2"
Location [110, 405, 638, 551]
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, 18, 60, 32]
}
Block {
BlockType Inport
Name "sigma"
Position [105, 93, 135, 107]
Port "2"
}
Block {
BlockType Inport
Name "mu"
Position [35, 73, 65, 87]
Port "3"
}
Block {
BlockType Gain
Name "Gain"
Position [330, 30, 360, 60]
ShowName off
Gain "-0.5"
Port {
PortNumber 1
Name "2b"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [400, 29, 430, 61]
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [260, 29, 290, 61]
Operator "square"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [165, 27, 195, 58]
Inputs "*/"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 25, 100, 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 Outport
Name "mf"
Position [455, 38, 485, 52]
}
Line {
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
Name "2b"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "x-c"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "mf"
DstPort 1
}
Line {
SrcBlock "sigma"
SrcPort 1
Points [0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "mu"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Annotation {
Name "(x-mu)/sigma"
Position [212, 51]
}
}
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [440, 210, 470, 230]
Orientation "down"
NamePlacement "alternate"
ShowName off
Operator "NOT"
Port {
PortNumber 1
Name "mu1<=x"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [440, 395, 470, 415]
Orientation "down"
NamePlacement "alternate"
ShowName off
Operator "NOT"
Port {
PortNumber 1
Name "mu1>=x"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -