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

📄 pendulum1.mdl

📁 自己编制的倒立摆matlab7的程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "pendulum1"
    Location		    [6, 82, 1018, 713]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Math
      Name		      "Math\nFunction"
      Ports		      [1, 1]
      Position		      [760, 235, 790, 265]
      Operator		      "square"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [685, 291, 690, 329]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Neural Network"
      Ports		      [1, 1]
      Position		      [565, 110, 625, 150]
      BackgroundColor	      "lightBlue"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Neural Network"
	Location		[316, 210, 896, 503]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "p{1}"
	  Position		  [40, 40, 60, 60]
	  BackgroundColor	  "magenta"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  SampleTime		  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  From
	  Name			  " a{1} "
	  Position		  [40, 120, 60, 140]
	  DialogController	  "Simulink.DDGSource"
	  GotoTag		  "feedback1"
	  MaskDisplay		  "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
	  MaskIconFrame		  off
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Layer 1"
	  Ports			  [1, 1]
	  Position		  [190, 40, 250, 60]
	  BackgroundColor	  "lightBlue"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Layer 1"
	    Location		    [480, 93, 1060, 386]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "p{1}"
	      Position		      [40, 40, 60, 60]
	      BackgroundColor	      "magenta"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      SampleTime	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Delays 1"
	      Ports		      [1, 1]
	      Position		      [100, 40, 120, 60]
	      BackgroundColor	      "lightBlue"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskDisplay	      "disp('TDL')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"Delays 1"
		Location		[480, 93, 1060, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "p{1}"
		  Position		  [60, 40, 80, 60]
		  Orientation		  "down"
		  BackgroundColor	  "magenta"
		  NamePlacement		  "alternate"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  SampleTime		  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Mux
		  Name			  "mux"
		  Ports			  [1, 1]
		  Position		  [200, 60, 240, 80]
		  BackgroundColor	  "lightBlue"
		  Inputs		  "1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "pd{1,1}"
		  Position		  [300, 60, 320, 80]
		  BackgroundColor	  "magenta"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "p{1}"
		  SrcPort		  1
		  DstBlock		  "mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "mux"
		  SrcPort		  1
		  DstBlock		  "pd{1,1}"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "IW{1,1}"
	      Ports		      [1, 1]
	      Position		      [160, 40, 200, 60]
	      BackgroundColor	      "lightBlue"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskDisplay	      "disp('weight')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"IW{1,1}"
		Location		[480, 93, 1060, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "pd{1,1}"
		  Position		  [40, 150, 60, 170]
		  BackgroundColor	  "magenta"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  SampleTime		  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{1,1}(1,:)'"
		  Position		  [140, 40, 180, 60]
		  BackgroundColor	  "lightBlue"
		  Value			  "0.86384040008935437"
		  MaskDisplay		  "disp('weights')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{1,1}(2,:)'"
		  Position		  [140, 100, 180, 120]
		  BackgroundColor	  "lightBlue"
		  Value			  "-0.28606734058763483"
		  MaskDisplay		  "disp('weights')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{1,1}(3,:)'"
		  Position		  [140, 160, 180, 180]
		  BackgroundColor	  "lightBlue"
		  Value			  "-0.18628960281586798"
		  MaskDisplay		  "disp('weights')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{1,1}(4,:)'"
		  Position		  [140, 220, 180, 240]
		  BackgroundColor	  "lightBlue"
		  Value			  "-0.96719028981270871"
		  MaskDisplay		  "disp('weights')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [4, 1]
		  Position		  [340, 152, 380, 173]
		}
		Block {
		  BlockType		  Reference
		  Name			  "dotprod1"
		  Ports			  [2, 1]
		  Position		  [240, 40, 260, 80]
		  BackgroundColor	  "lightBlue"
		  SourceBlock		  "neural/Weight Functions/dotprod"
		  SourceType		  ""
		  ShowPortLabels	  on
		}
		Block {
		  BlockType		  Reference
		  Name			  "dotprod2"
		  Ports			  [2, 1]
		  Position		  [240, 100, 260, 140]
		  BackgroundColor	  "lightBlue"
		  SourceBlock		  "neural/Weight Functions/dotprod"
		  SourceType		  ""
		  ShowPortLabels	  on
		}
		Block {
		  BlockType		  Reference
		  Name			  "dotprod3"
		  Ports			  [2, 1]
		  Position		  [240, 160, 260, 200]
		  BackgroundColor	  "lightBlue"
		  SourceBlock		  "neural/Weight Functions/dotprod"
		  SourceType		  ""
		  ShowPortLabels	  on
		}
		Block {
		  BlockType		  Reference
		  Name			  "dotprod4"
		  Ports			  [2, 1]
		  Position		  [240, 220, 260, 260]
		  BackgroundColor	  "lightBlue"
		  SourceBlock		  "neural/Weight Functions/dotprod"
		  SourceType		  ""
		  ShowPortLabels	  on
		}
		Block {
		  BlockType		  Outport
		  Name			  "iz{1,1}"
		  Position		  [420, 150, 440, 170]
		  BackgroundColor	  "magenta"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "IW{1,1}(1,:)'"
		  SrcPort		  1
		  DstBlock		  "dotprod1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "pd{1,1}"
		  SrcPort		  1
		  Points		  [0, 0]
		  Branch {
		    DstBlock		    "dotprod1"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "dotprod2"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "dotprod3"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "dotprod4"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "dotprod1"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "IW{1,1}(2,:)'"
		  SrcPort		  1
		  DstBlock		  "dotprod2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dotprod2"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "IW{1,1}(3,:)'"
		  SrcPort		  1
		  DstBlock		  "dotprod3"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dotprod3"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "IW{1,1}(4,:)'"
		  SrcPort		  1
		  DstBlock		  "dotprod4"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dotprod4"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "iz{1,1}"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "b{1}"
	      Position		      [160, 80, 200, 100]
	      BackgroundColor	      "lightBlue"
	      Value		      "[-2.3332146899642137;0.5079239521528942"
"1;-0.27640621938373872;-5.3713296206273684]"
	      MaskDisplay	      "disp('bias')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "netsum"
	      Ports		      [2, 1]
	      Position		      [240, 60, 260, 80]
	      BackgroundColor	      "lightBlue"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "tansig"
	      Ports		      [1, 1]
	      Position		      [300, 60, 320, 80]
	      BackgroundColor	      "lightBlue"
	      SourceBlock	      "neural/Transfer Functions/tansig"
	      SourceType	      ""
	      ShowPortLabels	      on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "a{1}"
	      Position		      [360, 60, 380, 80]
	      BackgroundColor	      "magenta"
	      IconDisplay	      "Port number"
	      InitialOutput	      "[0;0;0;0]"
	    }
	    Line {
	      SrcBlock		      "p{1}"
	      SrcPort		      1
	      DstBlock		      "Delays 1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Delays 1"
	      SrcPort		      1
	      DstBlock		      "IW{1,1}"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IW{1,1}"
	      SrcPort		      1
	      DstBlock		      "netsum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "b{1}"
	      SrcPort		      1
	      DstBlock		      "netsum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "netsum"
	      SrcPort		      1
	      DstBlock		      "tansig"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "tansig"
	      SrcPort		      1
	      DstBlock		      "a{1}"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Layer 2"
	  Ports			  [1, 1]
	  Position		  [190, 80, 250, 100]
	  BackgroundColor	  "lightBlue"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Layer 2"
	    Location		    [480, 93, 1060, 386]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "a{1} "
	      Position		      [40, 40, 60, 60]
	      BackgroundColor	      "magenta"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "4"
	      SampleTime	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Delays 1"
	      Ports		      [1, 1]
	      Position		      [100, 40, 120, 60]
	      BackgroundColor	      "lightBlue"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskDisplay	      "disp('TDL')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"Delays 1"
		Location		[480, 93, 1060, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "p{2}"
		  Position		  [60, 40, 80, 60]
		  Orientation		  "down"
		  BackgroundColor	  "magenta"
		  NamePlacement		  "alternate"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "4"
		  SampleTime		  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Mux
		  Name			  "mux"
		  Ports			  [1, 1]
		  Position		  [200, 60, 240, 80]
		  BackgroundColor	  "lightBlue"
		  Inputs		  "1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "pd{2,1}"
		  Position		  [300, 60, 320, 80]
		  BackgroundColor	  "magenta"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "p{2}"
		  SrcPort		  1
		  DstBlock		  "mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "mux"
		  SrcPort		  1
		  DstBlock		  "pd{2,1}"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "LW{2,1}"
	      Ports		      [1, 1]
	      Position		      [160, 40, 200, 60]
	      BackgroundColor	      "lightBlue"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskDisplay	      "disp('weight')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"LW{2,1}"
		Location		[480, 93, 1060, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "ad{2,1}"
		  Position		  [40, 60, 60, 80]
		  BackgroundColor	  "magenta"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "4"
		  SampleTime		  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{2,1}(1,:)'"
		  Position		  [140, 40, 180, 60]
		  BackgroundColor	  "lightBlue"
		  Value			  "[2.1551591406843258;1.5959430960576"

⌨️ 快捷键说明

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