c10mfode4.mdl

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

MDL
728
字号
"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.8|ww|4"
      System {
	Name			"Fractional DD1"
	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		      SubSystem
      Name		      "Fractional DD2"
      Ports		      [1, 1]
      Position		      [115, 238, 195, 282]
      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		      [515, 73, 595, 117]
      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 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		  "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		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [265, 126, 270, 164]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [3, 1]
      Position		      [450, 85, 470, 105]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "+--"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Outport
      Name		      "Out1"
      Position		      [630, 88, 660, 102]
    }
    Line {
      SrcBlock		      "Fractional DD1"
      SrcPort		      1
      Points		      [15, 0; 0, -50]
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fractional DD2"
      SrcPort		      1
      Points		      [35, 0; 0, -105]
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, -70; -435, 0; 0, 70]
	Branch {
	  Points		  [25, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 40]
	    Branch {
	      DstBlock		      "Fractional DD"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 60]
	      DstBlock		      "Fractional DD1"
	      DstPort		      1
	    }
	  }
	}
	Branch {
	  Points		  [0, 165]
	  DstBlock		  "Fractional DD2"
	  DstPort		  1
	}
      }
      Branch {
	DstBlock		"Fractional DD3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      Points		      [145, 0]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fractional DD3"
      SrcPort		      1
      DstBlock		      "Out1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fractional DD"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Fcn1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn1"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Annotation {
      Name		      "c10mfode4.mdl"
      Position		      [520, 195]
      FontName		      "Arial"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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