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

📄 emulation.mdl

📁 the file contain many matlab signal source code and many example .
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      SourceType	      "Pulse generator"
      samp_time		      "1"
      out_divid		      "2"
      offset		      "0"
    }
    Block {
      BlockType		      RelationalOperator
      Name		      "Relational\nOperator"
      Position		      [145, 332, 175, 363]
      Orientation	      "left"
      BackgroundColor	      "green"
      ShowName		      off
      Operator		      ">="
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [395, 46, 415, 79]
      BackgroundColor	      "cyan"
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "++"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [415, 320, 435, 340]
      Orientation	      "left"
      BackgroundColor	      "cyan"
    }
    Block {
      BlockType		      SubSystem
      Name		      "调制"
      Ports		      [1, 1]
      Position		      [655, 35, 695, 95]
      BackgroundColor	      "orange"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "encode"
      MaskDescription	      "encode"
      MaskPromptString	      "初始值(ph)|增益(fc)|系数(sft)"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVariables	      "ph=@1;fc=@2;sft=@3;"
      MaskDisplay	      "disp('S-QASK')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0|100|pi/64"
      MaskVariableAliases     ",,"
      System {
	Name			"调制"
	Location		[6, 74, 794, 555]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"darkGreen"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [275, 228, 305, 242]
	  BackgroundColor	  "red"
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sampled read with\nsynchronized pulse"
	  Ports			  [0, 2]
	  Position		  [250, 158, 330, 202]
	  BackgroundColor	  "red"
	  ShowName		  off
	  LinkData {
	    BlockName		    "Pulses divide\nsample time"
	    DialogParameters {
	      out_divid		      "2"
	    }
	  }
	  SourceBlock		  "com_sour/Sampled read with\nsynchronized pu"
"lse"
	  SourceType		  "Read from workspace"
	  var			  "randint(100,1,2)"
	  td			  "1"
	  cyc			  "1"
	  ini			  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [1, 1]
	  Position		  [415, 144, 515, 196]
	  BackgroundColor	  "blue"
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "Subsystem"
	    Location		    [2, 70, 798, 551]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "darkGreen"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [225, 153, 255, 167]
	      BackgroundColor	      "red"
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      Ports		      [1, 1]
	      Position		      [400, 130, 440, 190]
	      BackgroundColor	      "blue"
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"Subsystem"
		Location		[2, 70, 798, 551]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"darkGreen"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [285, 128, 315, 142]
		  BackgroundColor	  "red"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [365, 190, 395, 220]
		  BackgroundColor	  "green"
		  Value			  "sft"
		  VectorParams1D	  on
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [435, 146, 480, 179]
		  BackgroundColor	  "magenta"
		  Inputs		  "2"
		  Multiplication	  "Element-wise(.*)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  ZeroOrderHold
		  Name			  "Zero-Order\nHold"
		  Position		  [365, 116, 400, 154]
		  BackgroundColor	  "lightBlue"
		  SampleTime		  "-1"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [520, 158, 550, 172]
		  BackgroundColor	  "red"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "[]"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [10, 0; 0, -35]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Zero-Order\nHold"
		  SrcPort		  1
		  Points		  [5, 0; 0, 20]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Zero-Order\nHold"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem1"
	      Ports		      [1, 1]
	      Position		      [535, 130, 575, 190]
	      BackgroundColor	      "blue"
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"Subsystem1"
		Location		[225, 202, 675, 391]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"automatic"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In2"
		  Position		  [200, 28, 230, 42]
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Clock
		  Name			  "Clock"
		  Position		  [25, 75, 45, 95]
		  DisplayTime		  off
		  Decimation		  "10"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [200, 135, 230, 165]
		  Value			  "ph"
		  VectorParams1D	  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [80, 70, 110, 100]
		  Gain			  "fc"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [215, 67, 235, 123]
		  ShowName		  off
		  IconShape		  "rectangular"
		  Inputs		  "|+-"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [285, 99, 305, 166]
		  ShowName		  off
		  IconShape		  "rectangular"
		  Inputs		  "|+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Trigonometry
		  Name			  "Trigonometric\nFunction"
		  Ports			  [1, 1]
		  Position		  [330, 80, 360, 110]
		  Operator		  "cos"
		  OutputSignalType	  "auto"
		}
		Block {
		  BlockType		  ZeroOrderHold
		  Name			  "Zero-Order\nHold"
		  Position		  [140, 116, 175, 154]
		  SampleTime		  "pi/64"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out2"
		  Position		  [395, 93, 425, 107]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "[]"
		}
		Line {
		  SrcBlock		  "Trigonometric\nFunction"
		  SrcPort		  1
		  Points		  [10, 0; 0, 5]
		  DstBlock		  "Out2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, -40]
		  DstBlock		  "Trigonometric\nFunction"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [15, 0; 0, -30]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 20]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "In2"
		  SrcPort		  1
		  Points		  [15, 0; 0, 55]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Zero-Order\nHold"
		  SrcPort		  1
		  Points		  [10, 0; 0, -20]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  Points		  [0, 0; 5, 0]
		  Branch {
		    Points		    [0, 50]
		    DstBlock		    "Zero-Order\nHold"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Sum"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Clock"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [650, 153, 680, 167]
	      BackgroundColor	      "red"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Subsystem1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      1
	      DstBlock		      "Subsystem1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Subsystem"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [585, 163, 615, 177]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Sampled read with\nsynchronized pulse"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [65, 0; 0, -65]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "高斯信道"
      Ports		      [1, 1]
      Position		      [701, 185, 779, 225]
      Orientation	      "down"
      BackgroundColor	      "blue"
      NamePlacement	      "alternate"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskPromptString	      "方差|均值"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVariables	      "k=@1;m=@2;"
      MaskDisplay	      "disp('AWGN Channel')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|2"
      MaskVariableAliases     ","
      System {
	Name			"高斯信道"
	Location		[2, 74, 790, 555]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [325, 148, 355, 162]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [0, 1]
	  Position		  [260, 180, 300, 240]
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "Subsystem"
	    Location		    [275, 245, 623, 402]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"

⌨️ 快捷键说明

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