⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nncomp.mdl

📁 自适应神经网络源程序,大家可以看看,还 可以
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "x"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Scale out"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [195, 110, 240, 160]
      ForegroundColor	      "blue"
      ShowPortLabels	      on
      MaskType		      "Scale"
      MaskDescription	      "   Scales the input vector x, ranging from xmin"
" to xmax,\n   to an output vector y, ranging from ymin to ymax"
      MaskHelp		      "   Scales the input vector x, ranging from xmin"
" to xmax,\n   to an output vector y, ranging from ymin to ymax"
      MaskPromptString	      "x min|x max|y min|y max"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskVariables	      "xmin=@1;xmax=@2;ymin=@3;ymax=@4;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[-1 -1 -1 -1]|[1 1 1 1]|[0 -5 -6 -2]|[1 0 6 7]"
      Port {
	PortNumber		1
	Name			"nx"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
      System {
	Name			"Scale out"
	Location		[61, 118, 681, 300]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "x"
	  Position		  [70, 48, 100, 62]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [190, 31, 380, 79]
	  Gain			  "(ymax-ymin)./(xmax-xmin)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [135, 45, 155, 65]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [435, 45, 455, 65]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Constant
	  Name			  "const x"
	  Position		  [70, 89, 120, 121]
	  Value			  "xmin"
	}
	Block {
	  BlockType		  Constant
	  Name			  "const y"
	  Position		  [380, 89, 430, 121]
	  Value			  "ymin"
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [480, 48, 510, 62]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "x"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "const x"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "y"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "const y"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Step
      Name		      "Step"
      Position		      [665, 222, 700, 248]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      Time		      "800"
      Before		      "1"
      After		      "0"
      SampleTime	      "0.05"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [580, 335, 600, 355]
      Orientation	      "up"
      NamePlacement	      "alternate"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "+|-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum5"
      Ports		      [4, 1, 0, 0, 0]
      Position		      [319, 300, 391, 315]
      Orientation	      "down"
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "++++"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum6"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [430, 335, 450, 355]
      NamePlacement	      "alternate"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [575, 375, 600, 395]
      ShowName		      off
      VariableName	      "y"
      Buffer		      "1000"
      Decimation	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace3"
      Position		      [770, 130, 795, 150]
      ShowName		      off
      VariableName	      "ys"
      Buffer		      "1000"
      Decimation	      "1"
      SampleTime	      "0.05"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace4"
      Position		      [105, 205, 130, 225]
      ShowName		      off
      VariableName	      "t"
      Buffer		      "1000"
      Decimation	      "1"
      SampleTime	      "0.05"
      SaveFormat	      "Matrix"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace5"
      Position		      [720, 170, 745, 190]
      ShowName		      off
      VariableName	      "Wc"
      Buffer		      "1000"
      Decimation	      "300/0.05"
      SampleTime	      "0.05"
      SaveFormat	      "Matrix"
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	DstBlock		"Math\nFunction1"
	DstPort			1
      }
      Branch {
	Points			[65, 0]
	Branch {
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [40, 0]
      Branch {
	DstBlock		"Sum5"
	DstPort			2
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [60, 0]
      Branch {
	DstBlock		"Sum5"
	DstPort			3
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Math\nFunction1"
      SrcPort		      1
      DstBlock		      "Sum5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum5"
      SrcPort		      1
      Points		      [0, 25]
      DstBlock		      "-eta4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "Scale in"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [20, 0]
      DstBlock		      "Sum6"
      DstPort		      2
    }
    Line {
      SrcBlock		      "-eta4"
      SrcPort		      1
      DstBlock		      "Sum6"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum6"
      SrcPort		      1
      DstBlock		      "-eta9"
      DstPort		      1
    }
    Line {
      SrcBlock		      "-eta9"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Sum4"
	DstPort			1
      }
      Branch {
	Points			[0, 40]
	DstBlock		"To Workspace2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      DstBlock		      "Sum5"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      4
      Points		      [75, 0]
      Branch {
	DstBlock		"Product"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			4
      }
    }
    Line {
      SrcBlock		      "Band-Limited\nWhite Noise"
      SrcPort		      1
      DstBlock		      "IIR1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "IIR1"
      SrcPort		      1
      DstBlock		      "Scale out"
      DstPort		      1
    }
    Line {
      Name		      "nx"
      Labels		      [0, 0]
      SrcBlock		      "Scale out"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "To Workspace4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum4"
      SrcPort		      1
      Points		      [0, -170]
      DstBlock		      "EMRAN-RBF"
      DstPort		      2
    }
    Line {
      Name		      "nx"
      Labels		      [0, 0]
      SrcBlock		      "Scale in"
      SrcPort		      1
      DstBlock		      "EMRAN-RBF"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Step"
      SrcPort		      1
      Points		      [-45, 0]
      DstBlock		      "EMRAN-RBF"
      DstPort		      3
    }
    Line {
      SrcBlock		      "EMRAN-RBF"
      SrcPort		      2
      DstBlock		      "To Workspace5"
      DstPort		      1
    }
    Line {
      Name		      "nyn"
      Labels		      [0, 0]
      SrcBlock		      "EMRAN-RBF"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	DstBlock		"To Workspace3"
	DstPort			1
      }
      Branch {
	Points			[0, 205]
	DstBlock		"Sum4"
	DstPort			2
      }
    }
    Annotation {
      Position		      [86, 284]
      ForegroundColor	      "red"
      Text		      "After the simpulation,\nuse the command      \n"
"plot(t,[y ys])                \nto plot the results       "
    }
    Annotation {
      Position		      [104, 80]
      Text		      "This generates a 4D input    \nthat moves rando"
"mly in the \nhypercube [-1 1].                  "
    }
    Annotation {
      Position		      [227, 74]
      Text		      "Stretches the \nhypercube    "
    }
    Annotation {
      Position		      [507, 79]
      Text		      "Converts the input \nspace back to the  \n[-1 1"
"] hypercube    "
    }
    Annotation {
      Position		      [499, 302]
      Text		      "This creates the nonlinear function : \ny = 2/3"
"0*(x1^2+x2+x3+x1*x4) - 1/30"
    }
    Annotation {
      Position		      [671, 275]
      Text		      "Learning is turned off\n200 secs before the   "
"\nend of the simulation"
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -