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

📄 librnew.mdl

📁 现代通信系统(prokis)的所有matlab源程序,对初学者很有帮助的。
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, 5]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -5]
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "imag_pt"
	  SrcPort		  1
	  Points		  [10, 0; 0, -35]
	  DstBlock		  "Sum6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  DstBlock		  "Sum6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "real_pt"
	  SrcPort		  1
	  Points		  [5, 0; 0, -35]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "imag"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "real"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "QPSK demapping"
      Ports		      [2, 1]
      Position		      [580, 93, 660, 137]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "QASK C-demap"
      MaskDescription	      "Reverse the QASK map. Input in-phase\nand quadr"
"ature components from the\ntwo inputs. Output demapped signal."
      MaskHelp		      "This block demaps a QASK mapped signal using ci"
"rcle constellation. You can place this block after a QAM demodulation block. "
"The circle constellation is defined in NIC, RIC, and PIC. The symbol interval"
" can be a two elements vector with the first element being offset. The defaul"
"t offset is zero. Use function MODMAP to view the constellation."
      MaskPromptString	      "Number of symbols on each circle NIC::|Radii fo"
"r each circle RIC:|Phase shift on each circle PIC (rad):|Symbol interval and "
"offset (sec):"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskInitialization      "N=@1;A=@2;P=@3;td=@4;y1=apkconst(N,A,P);y2=imag"
"(y1);y1=real(y1);"
      MaskDisplay	      "disp('QASK\\nC-demap')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[4]|[sqrt(2)]|[pi/4]|1"
      MaskVariableAliases     ",,,"
      System {
	Name			"QPSK demapping"
	Location		[96, 182, 645, 417]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "real"
	  Position		  [45, 35, 65, 55]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "imag"
	  Position		  [45, 120, 65, 140]
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Minimum1"
	  Ports			  [1, 1]
	  Position		  [415, 85, 475, 105]
	  FunctionName		  "arymimai"
	  Parameters		  "'min'"
	  PortCounts		  "[]"
	  SFunctionModules	  "''"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [300, 45, 325, 65]
	  Inputs		  "2"
	  Multiplication	  "Element-wise(.*)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [300, 130, 325, 150]
	  Inputs		  "2"
	  Multiplication	  "Element-wise(.*)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [230, 38, 250, 67]
	  ForegroundColor	  "red"
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [2, 1]
	  Position		  [370, 78, 390, 107]
	  IconShape		  "rectangular"
	  Inputs		  "++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum6"
	  Ports			  [2, 1]
	  Position		  [230, 123, 250, 152]
	  ForegroundColor	  "blue"
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold"
	  Position		  [120, 29, 155, 61]
	  ForegroundColor	  "red"
	  SampleTime		  "td"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold1"
	  Position		  [120, 114, 155, 146]
	  ForegroundColor	  "blue"
	  SampleTime		  "td"
	}
	Block {
	  BlockType		  Constant
	  Name			  "imag_pt"
	  Position		  [165, 169, 190, 191]
	  BackgroundColor	  "yellow"
	  Value			  "y2"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "real_pt"
	  Position		  [170, 84, 195, 106]
	  BackgroundColor	  "green"
	  Value			  "y1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [495, 85, 515, 105]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Minimum1"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  DstBlock		  "Minimum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -40]
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, 30]
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum6"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, -5]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 5]
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, -5]
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 5]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "imag_pt"
	  SrcPort		  1
	  Points		  [10, 0; 0, -35]
	  DstBlock		  "Sum6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  DstBlock		  "Sum6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "real_pt"
	  SrcPort		  1
	  Points		  [5, 0; 0, -35]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "imag"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "real"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      "S-Function"
      Name		      "Random\nSource"
      Ports		      [0, 1]
      Position		      [55, 116, 90, 154]
      Diagnostics	      "AllowInheritedTsInSrc"
      FunctionName	      "sdsprandsrc2"
      Parameters	      "SrcType,Min,Max,Mean,Var,SFcnSeed,Inherit,SampM"
"ode,SampTime,SampFrame,OutComplex,RepMode,Seed"
      PortCounts	      "[]"
      SFunctionModules	      "''"
      MaskType		      "Random Source"
      MaskDescription	      "Output a random signal with uniform or Gaussian"
" (normal) distribution.  Set output repeatability to Nonrepeatable (block ran"
"domly selects initial seed every time simulation starts), Repeatable (block r"
"andomly selects initial seed once and uses it every time simulation starts), "
"or Specify seed (block uses specified initial seed every time simulation star"
"ts, producing repeatable output)."
      MaskHelp		      "web(dspbhelp);"
      MaskPromptString	      "Source type:|Minimum:|Maximum:|Mean:|Variance:|"
"Repeatability:|Initial seed:|Inherit output port attributes|Sample mode: |Sam"
"ple time:|Samples per frame:|Output complexity:"
      MaskStyleString	      "popup(Uniform|Gaussian),edit,edit,edit,edit,pop"
"up(Specify seed|Repeatable|Not repeatable),edit,checkbox,popup(Discrete|Conti"
"nuous),edit,edit,popup(Real|Complex)"
      MaskTunableValueString  "off,on,on,on,on,off,off,off,off,off,off,off"
      MaskCallbackString      "dspblkrandsrc2;|||||dspblkrandsrc2;||dspblkrand"
"src2;|dspblkrandsrc2;|||"
      MaskEnableString	      "on,on,on,off,off,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVariables	      "SrcType=@1;Min=@2;Max=@3;Mean=@4;Var=@5;RepMode"
"=@6;Seed=@7;Inherit=@8;SampMode=@9;SampTime=@10;SampFrame=@11;OutComplex=@12"
      MaskInitialization      "[x,y]=dspblkrandsrc2('icon');SFcnSeed=eval(dspb"
"lkrandsrc2('seed'),'Seed');"
      MaskDisplay	      "plot(x,y);\n"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
      MaskValueString	      "Gaussian|0|1|0|1|Specify seed|seed|on|Discrete|"
"1|1|Real"
      MaskVariableAliases     ",,,,,,,,,,,"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Signal space\nconstellation"
      Ports		      [1, 2]
      Position		      [425, 93, 505, 137]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "QASK C-map"
      MaskDescription	      "QASK mapping with circle constellation. The con"
"stellation is defined in NIC, RIC and PIC."
      MaskHelp		      "This block maps a digital signal onto in-phase "
"and quadratic components, which are outputs in the first and second output po"
"rt respectively. The circle constellation is defined in NIC, RIC, and PIC. Th"
"e input symbol interval can be a two-element vector with the second element b"
"eing offset. The default value offset is 0. Use the MODMAP function to see th"
"e constellation."
      MaskPromptString	      "Number of symbols in each circle NIC:|Radii in "
"each circle RIC:|Phase shift in each circle PIC (rad):|Symbol interval and of"
"fset (sec):"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskInitialization      "N=@1;A=@2;P=@3;td=@4;y1=apkconst(N,A,P);y1=[y1;"
"y1];y1=y1(:);y2=imag(y1);y1=real(y1);x=[-sum(N) 1:sum(N)-1;1:sum(N)-1 10*sum("
"N)]-.5;x=x(:);"
      MaskDisplay	      "disp('QASK\\nC-map')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[4]|[sqrt(2)]|[pi/4]|1"
      MaskVariableAliases     ",,,"
      System {
	Name			"Signal space\nconstellation"
	Location		[58, 103, 468, 327]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [25, 20, 45, 40]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold1"
	  Position		  [80, 14, 115, 46]
	  SampleTime		  "td"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "imag part1"
	  Position		  [175, 97, 210, 123]
	  InputValues		  "x"
	  OutputValues		  "y2"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "real part"
	  Position		  [180, 17, 215, 43]
	  InputValues		  "x"
	  OutputValues		  "y1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Real"
	  Position		  [275, 20, 295, 40]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Imag"
	  Position		  [275, 100, 295, 120]
	  Port			  "2"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [0, 80]
	    DstBlock		    "imag part1"
	    DstPort		    1
	  }
	  Branch {

⌨️ 快捷键说明

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