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

📄 lhw_sttc_o2s4.mdl

📁 用simlink开发的space-time coding仿真模型,仿真的精度与效率有不小的提高
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  Ports			  [2, 1]
	  Position		  [735, 242, 765, 273]
	  Operator		  "mod"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction1"
	  Ports			  [1, 1]
	  Position		  [255, 75, 285, 105]
	  Operator		  "transpose"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction2"
	  Ports			  [1, 1]
	  Position		  [255, 390, 285, 420]
	  Operator		  "transpose"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction3"
	  Ports			  [1, 1]
	  Position		  [440, 115, 470, 145]
	  Operator		  "transpose"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction4"
	  Ports			  [1, 1]
	  Position		  [445, 350, 475, 380]
	  Operator		  "transpose"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Multiport\nSelector"
	  Ports			  [1, 2]
	  Position		  [795, 240, 845, 275]
	  FontSize		  10
	  SourceBlock		  "dspindex/Multiport\nSelector"
	  SourceType		  "Multiport Selector"
	  rowsOrCols		  "Columns"
	  idxCellArray		  "{1 2}"
	  idxErrMode		  "Clip Index"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Multiport\nSelector1"
	  Ports			  [1, 2]
	  Position		  [175, 232, 215, 263]
	  FontSize		  10
	  SourceBlock		  "dspindex/Multiport\nSelector"
	  SourceType		  "Multiport Selector"
	  rowsOrCols		  "Rows"
	  idxCellArray		  "{ 1,2 }"
	  idxErrMode		  "Clip Index"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [340, 82, 370, 113]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [505, 147, 535, 178]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [345, 382, 375, 413]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [510, 312, 540, 343]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Tapped Delay"
	  Ports			  [1, 1]
	  Position		  [340, 152, 375, 188]
	  SourceBlock		  "simulink/Discrete/Tapped Delay"
	  SourceType		  "Tapped Delay Line"
	  vinit			  "0.0"
	  samptime		  "-1"
	  NumDelays		  "1"
	  DelayOrder		  "Oldest"
	  includeCurrent	  "off"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Tapped Delay1"
	  Ports			  [1, 1]
	  Position		  [345, 302, 380, 338]
	  SourceBlock		  "simulink/Discrete/Tapped Delay"
	  SourceType		  "Tapped Delay Line"
	  vinit			  "0.0"
	  samptime		  "-1"
	  NumDelays		  "1"
	  DelayOrder		  "Oldest"
	  includeCurrent	  "off"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [895, 203, 925, 217]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [895, 293, 925, 307]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Integer to Bit\nConverter2"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSelector1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Multiport\nSelector1"
	  SrcPort		  1
	  Points		  [30, 0; 0, -70; 40, 0]
	  Branch {
	    Points		    [0, -65]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Tapped Delay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Multiport\nSelector1"
	  SrcPort		  2
	  Points		  [30, 0; 0, 65; 45, 0]
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Tapped Delay1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Integer to Bit\nConverter2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tapped Delay"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [210, 0; 0, 120]
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [25, 0; 0, 75]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tapped Delay1"
	  SrcPort		  1
	  DstBlock		  "Product3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [20, 0; 0, -70]
	  DstBlock		  "Add"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [205, 0; 0, -120]
	  DstBlock		  "Add"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant4"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Math\nFunction"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Math\nFunction1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction2"
	  SrcPort		  1
	  DstBlock		  "Product2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Math\nFunction3"
	  SrcPort		  1
	  Points		  [5, 0; 0, 25]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction4"
	  SrcPort		  1
	  Points		  [5, 0; 0, -30]
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Math\nFunction"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSelector"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  1
	  Points		  [15, 0; 0, -40]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  2
	  Points		  [15, 0; 0, 35]
	  DstBlock		  "Out2"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [440, 86, 475, 119]
      Inputs		      "**"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Sourses"
      Ports		      [0, 1]
      Position		      [15, 77, 60, 113]
      FontSize		      10
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Sourses"
	Location		[2, 74, 1014, 724]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "Source"
	  Ports			  [0, 1]
	  Position		  [135, 77, 185, 113]
	  FontSize		  10
	  SourceBlock		  "commrandsrc2/Random Integer\nGenerator"
	  SourceType		  "Random Integer Generator"
	  ShowPortLabels	  "on"
	  mul			  "4"
	  seed			  "36887"
	  Ts			  "1e-5"
	  frameBased		  "off"
	  sampPerFrame		  "129"
	  orient		  "off"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "pading zero"
	  Ports			  [1, 1]
	  Position		  [260, 77, 380, 113]
	  CopyFcn		  "set_param(gcbh,'LinkStatus','none')"
	  OpenFcn		  "sfunctionwizard(gcbh)"
	  FunctionName		  "pading_zero"
	  SFunctionModules	  "pading_zero_wrapper  "
	  MaskType		  "S-Function Builder"
	  MaskInitialization	  "val = [[.9  0.75 0.75 1 1 .9 .9 1]',[1 1 0."
"75 0.75 .9 .9 1 .9]'];try , sys = get_param(gcb,'SfunBuilderFcnName');if isem"
"pty(sys), sys = get_param(gcb,'FunctionName'); end,catch, sys = get_param(gcb"
",'FunctionName'); end"
	  MaskDisplay		  "plot(val(:,1),val(:,2)),disp(sys)port_label"
"('input',1,'u0')port_label('output',1,'y0')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [475, 88, 505, 102]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Source"
	  SrcPort		  1
	  DstBlock		  "pading zero"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "pading zero"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [575, 545, 635, 575]
      VariableName	      "ErrorVec"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Line {
      SrcBlock		      "Sourses"
      SrcPort		      1

⌨️ 快捷键说明

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