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

📄 nncomp.mdl

📁 神经网络仿真
💻 MDL
📖 第 1 页 / 共 2 页
字号:
Model {
  Name			  "nncomp"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "1000"
  SolverMode		  "Auto"
  Solver		  "FixedStepDiscrete"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  InitialStep		  "auto"
  FixedStep		  "0.05"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Matrix"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  IntegerOverflowMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  ConsistencyChecking	  "off"
  ZeroCross		  on
  SimulationMode	  "normal"
  BlockDataTips		  on
  BlockParametersDataTip  on
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  BooleanDataType	  off
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "oneshot"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  off
  Created		  "Sun Apr 30 12:17:39 2000"
  Creator		  "CAMPA"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "campa"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Tue Dec 16 15:34:53 2003"
  ModelVersionFormat	  "1.%<AutoIncrement:475>"
  ConfigurationManager	  "none"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "nncomp"
    Location		    [76, 157, 888, 579]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Gain
      Name		      "-eta4"
      Position		      [390, 330, 410, 360]
      ShowName		      off
      Gain		      "2"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Gain
      Name		      "-eta9"
      Position		      [475, 330, 520, 360]
      ShowName		      off
      Gain		      "1/30"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Reference
      Name		      "Band-Limited\nWhite Noise"
      Ports		      [0, 1, 0, 0, 0]
      Position		      [40, 118, 75, 152]
      SourceBlock	      "simulink3/Sources/Band-Limited\nWhite Noise"
      SourceType	      "Continuous White Noise."
      Cov		      "[1 1 1 1]"
      Ts		      "0.05"
      seed		      "1:4"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [40, 205, 60, 225]
      DisplayTime	      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [390, 375, 415, 395]
      ShowName		      off
      Value		      "1"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 4, 0, 0, 0]
      Position		      [295, 36, 300, 234]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "4"
    }
    Block {
      BlockType		      Reference
      Name		      "EMRAN-RBF"
      Ports		      [3, 2, 0, 0, 0]
      Position		      [630, 120, 700, 200]
      BackgroundColor	      "green"
      SourceBlock	      "ann/EMRAN-RBF"
      SourceType	      "EMRAN NN"
      dim		      "[4 1]"
      nwrap		      "[62     1           10               1]"
      eta		      "[0.0001 0.0001 0.0001]"
      gam		      "[1e-6 1e-6 1e-6]"
      e1		      "0.1"
      e2		      "[0.2  0.1  0.9997]"
      e3		      "[0.1 0.97]"
      x0		      "zeros((4+2)*62+2,1)"
      T			      "0.05"
      Port {
	PortNumber		1
	Name			"nyn"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "IIR1"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [105, 117, 160, 153]
      ShowPortLabels	      on
      MaskType		      "Discrete Time First Order IIR"
      MaskDescription	      "  Each channel has the transfer function \n  (1"
"-exp(-aT))/(1-exp(-aT)(z^-1)) which is a good\n  (pz-matched) approximation o"
"f a/(s+a) if 10*a*T<pi"
      MaskHelp		      "<p>\n  Each channel has the transfer function "
"\n  (1-exp(-aT))/(1-exp(-aT)(z^-1)) which is a good\n  (pz-matched) approxima"
"tion of a/(s+a) if 10*a*T<pi\n</p>\n"
      MaskPromptString	      "Number of Channels|Cutoff Frequency (a)|Initial"
" Condition|Sample Time"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskVariables	      "ni=@1;a=@2;x0=@3;T=@4;"
      MaskInitialization      "A=[];B=[];C=[];D=[];\nfor i=1:ni,\nA=[A,zeros(s"
"ize(A,1),1);zeros(1,size(A,2)),exp(-a*T)];\nB=[B,zeros(size(B,1),1);zeros(1,s"
"ize(B,2)),1-exp(-a*T)];\nC=[C,zeros(size(C,1),1);zeros(1,size(C,2)),exp(-a*T)"
"];\nD=[D,zeros(size(D,1),1);zeros(1,size(D,2)),1-exp(-a*T)];\nend"
      MaskDisplay	      "dpoly(a,[1 a],'s')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "4|0.25|0|0.05"
      System {
	Name			"IIR1"
	Location		[350, 143, 766, 250]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [80, 43, 110, 57]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  DiscreteStateSpace
	  Name			  "Discrete State-Space"
	  Position		  [135, 32, 255, 68]
	  A			  "A"
	  B			  "B"
	  C			  "C"
	  D			  "D"
	  X0			  "x0"
	  SampleTime		  "T"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [275, 43, 305, 57]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Discrete State-Space"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Discrete State-Space"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Math
      Name		      "Math\nFunction1"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [316, 240, 334, 275]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      Operator		      "square"
      OutputSignalType	      "auto"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [4, 1, 0, 0, 0]
      Position		      [415, 35, 420, 235]
      ShowName		      off
      Inputs		      "4"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [376, 240, 394, 275]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      Inputs		      "2"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      SubSystem
      Name		      "Scale in"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [465, 110, 510, 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	      "[0 -5 -6 -2]|[1 0 6 7]|[-1 -1 -1 -1]|[1 1 1 1]"
      Port {
	PortNumber		1
	Name			"nx"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
      System {
	Name			"Scale in"
	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		  "const y"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "y"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "const x"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1

⌨️ 快捷键说明

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