c10mfode2.mdl

来自「薛定宇高等应用数学问题的MATLAB求解例子源码」· MDL 代码 · 共 852 行 · 第 1/2 页

MDL
852
字号
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 38, 45, 52]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [80, 27, 140, 63]
	  Numerator		  "num"
	  Denominator		  "den"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn1"
	  Position		  [160, 25, 250, 65]
	  Numerator		  "1"
	  Denominator		  "[T 1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [280, 38, 310, 52]
	}
	Line {
	  SrcBlock		  "Transfer Fcn1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Fractional DD2"
      Ports		      [1, 1]
      Position		      [175, 228, 255, 272]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Derivative order gamma|Frequency range [wb,wh]|"
"Apprixmation order"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "gam=@1;ww=@2;n=@3;"
      MaskInitialization      "wb=ww(1); wh=ww(2); G=ousta_fod(gam,n,wb,wh);\n"
"num=G.num{1}; den=G.den{1}; T=1/wh; str='Fractional\\n';\nif isnumeric(gam)\n"
"	if gam>0, str=[str, 'Der  s^' num2str(gam) ];\n	else, str=[str"
", 'Int  s^{' num2str(gam) '}']; end\nelse, str=[str, 'Der  s^gam']; end"
      MaskDisplay	      "disp(str)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.2|ww|4"
      System {
	Name			"Fractional DD2"
	Location		[410, 433, 794, 614]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 38, 45, 52]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [80, 27, 140, 63]
	  Numerator		  "num"
	  Denominator		  "den"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn1"
	  Position		  [160, 25, 250, 65]
	  Numerator		  "1"
	  Denominator		  "[T 1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [280, 38, 310, 52]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Fractional DD3"
      Ports		      [1, 1]
      Position		      [190, 288, 270, 332]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Derivative order gamma|Frequency range [wb,wh]|"
"Apprixmation order"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "gam=@1;ww=@2;n=@3;"
      MaskInitialization      "wb=ww(1); wh=ww(2); G=ousta_fod(gam,n,wb,wh);\n"
"num=G.num{1}; den=G.den{1}; T=1/wh; str='Fractional\\n';\nif isnumeric(gam)\n"
"	if gam>0, str=[str, 'Der  s^' num2str(gam) ];\n	else, str=[str"
", 'Int  s^{' num2str(gam) '}']; end\nelse, str=[str, 'Der  s^gam']; end"
      MaskDisplay	      "disp(str)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.7|ww|4"
      System {
	Name			"Fractional DD3"
	Location		[410, 433, 794, 614]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 38, 45, 52]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [80, 27, 140, 63]
	  Numerator		  "num"
	  Denominator		  "den"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn1"
	  Position		  [160, 25, 250, 65]
	  Numerator		  "1"
	  Denominator		  "[T 1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [280, 38, 310, 52]
	}
	Line {
	  SrcBlock		  "Transfer Fcn1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [275, 174, 320, 206]
      Gain		      "0.2"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [285, 235, 330, 265]
      Gain		      "0.9"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [300, 295, 330, 325]
      Gain		      "2"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain3"
      Position		      [480, 95, 540, 125]
      Gain		      "0.75"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain4"
      Position		      [295, 86, 330, 114]
      Gain		      "3"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [395, 92, 425, 128]
      Inputs		      "*/"
      InputSameDT	      off
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Position		      [310, 40, 340, 70]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "20"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [3, 1]
      Position		      [340, 180, 360, 200]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "+++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [3, 1]
      Position		      [445, 100, 465, 120]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "+--"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Outport
      Name		      "Out1"
      Position		      [210, 43, 240, 57]
    }
    Line {
      SrcBlock		      "Fractional DD2"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fractional DD"
      SrcPort		      1
      DstBlock		      "Gain4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [5, 0; 0, -70]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fractional DD3"
      SrcPort		      1
      DstBlock		      "Gain2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [110, 0]
      DstBlock		      "Sum1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      DstBlock		      "Sum1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "Gain3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [30, 0]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain4"
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain3"
      SrcPort		      1
      Points		      [10, 0; 0, -85; -410, 0; 0, 25]
      Branch {
	Points			[0, 50; 10, 0]
	Branch {
	  Points		  [0, 90]
	  Branch {
	    Points		    [0, 60]
	    Branch {
	      DstBlock		      "Fractional DD2"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 60]
	      DstBlock		      "Fractional DD3"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "Fractional DD1"
	    DstPort		    1
	  }
	}
	Branch {
	  DstBlock		  "Fractional DD"
	  DstPort		  1
	}
      }
      Branch {
	DstBlock		"Out1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      Points		      [25, 0]
      DstBlock		      "Sum1"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Fractional DD1"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Annotation {
      Name		      "c10mfod2.mdl"
      Position		      [509, 186]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "y(t)"
      Position		      [166, 88]
    }
  }
}

⌨️ 快捷键说明

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