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

📄 spm2.mdl

📁 类神经网路─MATLAB的应用(范例程式)
💻 MDL
字号:
Model {
  Name			  "spm2"
  Version		  2.00
  SimParamPage		  Solver
  SampleTimeColors	  off
  WideVectorLines	  off
  PaperOrientation	  landscape
  StartTime		  "0.0"
  StopTime		  "999999"
  Solver		  ode45
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "10"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  RefineOutputTimes
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  warning
  MinStepSizeMsg	  warning
  UnconnectedInputMsg	  warning
  UnconnectedOutputMsg	  warning
  UnconnectedLineMsg	  warning
  ConsistencyChecking	  off
  ZeroCross		  on
  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
  }
  System {
    Name		    "spm2"
    Location		    [522, 102, 974, 281]
    Open		    on
    ScreenColor		    yellow
    Block {
      BlockType		      Inport
      Name		      "Inport"
      Position		      [45, 85, 65, 105]
      BackgroundColor	      blue
      Port		      "1"
      PortWidth		      "-1"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "DEE"
      Position		      [130, 79, 295, 111]
      BackgroundColor	      green
      DropShadow	      on
      OpenFcn		      "diffeqed"
      ShowPortLabels	      off
      MaskType		      "Differential Equation Editor (DEE)"
      MaskDisplay	      "disp('Spring-mass-damper\\nsystem')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      off
      MaskIconUnits	      autoscale
      System {
	Name			"DEE"
	Location		[100, 100, 600, 400]
	Open			off
	ScreenColor		green
	Block {
	  BlockType		  Inport
	  Name			  "SysInport1"
	  Position		  [20, 50, 40, 70]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integ1"
	  Position		  [400, 50, 430, 70]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "0"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integ2"
	  Position		  [400, 100, 430, 120]
	  ExternalReset		  none
	  InitialConditionSource  internal
	  InitialCondition	  "0"
	  LimitOutput		  off
	  UpperSaturationLimit	  "inf"
	  LowerSaturationLimit	  "-inf"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Mux
	  Name			  "SysMux"
	  Position		  [100, 199, 150, 251]
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "x1"
	  Position		  [300, 50, 330, 70]
	  Expr			  "u(3)                          "
	}
	Block {
	  BlockType		  Fcn
	  Name			  "x2"
	  Position		  [300, 100, 330, 120]
	  Expr			  "-u(3)-u(2)-u(2)*u(2)*u(2)+u(1)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "y1"
	  Position		  [300, 250, 330, 270]
	  Expr			  "u(2)"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Port1"
	  Position		  [400, 250, 420, 270]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "y1"
	  SrcPort		  1
	  DstBlock		  "Port1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integ2"
	  SrcPort		  1
	  Points		  [10, 0; 0, 35; -375, 0; 0, 95]
	  DstBlock		  "SysMux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "x2"
	  SrcPort		  1
	  DstBlock		  "Integ2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SysMux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [65, 0; 0, 35]
	    DstBlock		    "y1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [65, 0; 0, -115]
	    DstBlock		    "x2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [65, 0; 0, -165]
	    DstBlock		    "x1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Integ1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 80; -370, 0; 0, 85]
	  DstBlock		  "SysMux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "x1"
	  SrcPort		  1
	  DstBlock		  "Integ1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SysInport1"
	  SrcPort		  1
	  Points		  [20, 0; 0, 150]
	  DstBlock		  "SysMux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Outport
      Name		      "Outport"
      Position		      [360, 85, 380, 105]
      BackgroundColor	      blue
      Port		      "1"
      OutputWhenDisabled      held
      InitialOutput	      "0"
    }
    Line {
      SrcBlock		      "Inport"
      SrcPort		      1
      DstBlock		      "DEE"
      DstPort		      1
    }
    Line {
      SrcBlock		      "DEE"
      SrcPort		      1
      DstBlock		      "Outport"
      DstPort		      1
    }
    Annotation {
      Position		      [217, 41]
      VerticalAlignment	      top
      BackgroundColor	      yellow
      Text		      "Spring-mass-damper with a stiffening spring"
    }
  }
}

⌨️ 快捷键说明

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