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

📄 yjsh.mdl

📁 信号实验常用的simulink模型和mfile,可直接在matlan下运行。
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      MaskInitialization      "npts=@1; fftpts=@2; HowOften=@3; ts=@4(1); if l"
"ength(@4) > 1, offset = @4(2), else, offset = 0; end"
      MaskDisplay	      "plot(0,0,100,100,[11,93,93,11,11],[90,90,40,40,"
"90],[90,80,72,64,55,45,41,36,20],[50,50,52,59,67,75,78,80,80])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "512|1024|100|0.05"
      System {
	Name			"频谱分析仪1\n(系统1的频谱)"
	Location		[6, 84, 377, 269]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "system input"
	  Position		  [55, 30, 75, 50]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "system output"
	  Position		  [55, 110, 75, 130]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [145, 71, 175, 104]
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-function block\nwhich calls M-file"
	  Ports			  [1, 0, 0, 0, 0]
	  Position		  [250, 72, 295, 108]
	  FunctionName		  "ssfuntf"
	  Parameters		  "fftpts,npts,HowOften,offset,ts,0"
	  PortCounts		  "[]"
	  SFunctionModules	  "''"
	}
	Line {
	  SrcBlock		  "system output"
	  SrcPort		  1
	  Points		  [30, 0; 0, -25]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "system input"
	  SrcPort		  1
	  Points		  [30, 0; 0, 40]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "S-function block\nwhich calls M-file"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "频谱分析仪2\n(系统2的频谱)"
      Ports		      [2, 0, 0, 0, 0]
      Position		      [270, 196, 300, 234]
      DropShadow	      on
      FontName		      "宋体"
      FontSize		      12
      ShowPortLabels	      off
      MaskType		      "Spectrum analyzer."
      MaskDescription	      "Spectrum analyser using graph window.\nHook inp"
"ut 1 to system input.\nHook input 2 to system output."
      MaskHelp		      "Hook the system's input to the first port of th"
"is block and the system's output to second port. Results are displayed as the"
" frequency response of this system. Use signals with high harmonic content fo"
"r best results. "
      MaskPromptString	      "Length of buffer:|Number of points for fft:|Plo"
"t after how many points:|Sample time:"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskInitialization      "npts=@1; fftpts=@2; HowOften=@3; ts=@4(1); if l"
"ength(@4) > 1, offset = @4(2), else, offset = 0; end"
      MaskDisplay	      "plot(0,0,100,100,[11,93,93,11,11],[90,90,40,40,"
"90],[90,80,72,64,55,45,41,36,20],[50,50,52,59,67,75,78,80,80])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "512|1024|100|0.05"
      System {
	Name			"频谱分析仪2\n(系统2的频谱)"
	Location		[6, 84, 377, 269]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "system input"
	  Position		  [55, 30, 75, 50]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "system output"
	  Position		  [55, 110, 75, 130]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [145, 71, 175, 104]
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-function block\nwhich calls M-file"
	  Ports			  [1, 0, 0, 0, 0]
	  Position		  [250, 72, 295, 108]
	  FunctionName		  "ssfuntf"
	  Parameters		  "fftpts,npts,HowOften,offset,ts,0"
	  PortCounts		  "[]"
	  SFunctionModules	  "''"
	}
	Line {
	  SrcBlock		  "system output"
	  SrcPort		  1
	  Points		  [30, 0; 0, -25]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "system input"
	  SrcPort		  1
	  Points		  [30, 0; 0, 40]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "S-function block\nwhich calls M-file"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "示波器\n(输入信号)"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [345, 57, 375, 93]
      FontName		      "宋体"
      FontSize		      12
      Floating		      off
      Location		      [307, 31, 640, 182]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "30.000000"
      YMin		      "-1.5"
      YMax		      "1.5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "示波器\n(系统1的响应)"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [350, 148, 380, 182]
      FontName		      "宋体"
      FontSize		      12
      Floating		      off
      Location		      [1, 23, 1025, 767]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "30.000000"
      YMin		      "-1.5"
      YMax		      "1.5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "示波器\n(系统2的响应)"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [355, 247, 385, 283]
      FontName		      "宋体"
      FontSize		      12
      Floating		      off
      Location		      [306, 303, 640, 469]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "30.000000"
      YMin		      "-1.5"
      YMax		      "1.5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "一阶系统1"
      Position		      [120, 141, 190, 189]
      FontName		      "宋体"
      FontSize		      12
      Numerator		      "[R*C 0]"
      Denominator	      "[R*C 1]"
      MaskType		      "微分"
      MaskDescription	      "微分"
      MaskPromptString	      "电容量(法):|电阻值(欧姆):"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskInitialization      "C=@1;R=@2;"
      MaskDisplay	      "plot([0 2 2 2],[2 2 0 4],[3 3 3 8],[0 4 2 2],[6"
" 6 5.5 6.5],[2 0 0 0],[5.5 5.5],[0 -4],[6.5 6.5],[0 -4],[5.5 6.5 6 6],[-4 -4 "
"-4 -5.5],[5.5 6.5],[-5.5 -5.5]);"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.01|10"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "一阶系统2"
      Position		      [120, 240, 190, 290]
      FontName		      "宋体"
      FontSize		      12
      Numerator		      "[1]"
      Denominator	      "[R*C 1]"
      MaskType		      "积分"
      MaskDescription	      "积分"
      MaskPromptString	      "电容量(法):|电阻值(欧姆):"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskInitialization      "C=@1;R=@2;"
      MaskDisplay	      "plot([0 2 2 2],[2 2 1.5 2.5],[2 6],[2.5 2.5],[2"
" 6],[1.5 1.5],[6 6],[2.5 1.5],[6 11],[2 2],[8 8 6 10],[2 0 0 0],[6 10],[-1 -1"
"],[8 8 7 9],[-1 -3 -3 -3]);"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.01|10"
    }
    Line {
      SrcBlock		      "方波信号"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"一阶系统1"
	DstPort			1
      }
      Branch {
	Points			[0, 0]
	Branch {
	  Points		  [0, 40]
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "一阶系统2"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "频谱分析仪2\n(系统2的频谱)"
	    DstPort		    1
	  }
	}
	Branch {
	  Points		  [0, -60]
	  Branch {
	    Points		    [0, -30]
	    DstBlock		    "示波器\n(输入信号)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "频谱分析仪1\n(系统1的频谱)"
	    DstPort		    1
	  }
	}
      }
    }
    Line {
      SrcBlock		      "一阶系统2"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"示波器\n(系统2的响应)"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"频谱分析仪2\n(系统2的频谱)"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "一阶系统1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"示波器\n(系统1的响应)"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"频谱分析仪1\n(系统1的频谱)"
	DstPort			2
      }
    }
    Annotation {
      Position		      [122, 27]
      VerticalAlignment	      "top"
      ForegroundColor	      "blue"
      Text		      "一阶系统的时域特性"
      FontName		      "楷体_GB2312"
      FontSize		      16
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
  }
}

⌨️ 快捷键说明

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