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

📄 asknyqmf.mdl

📁 很多通信系统的matlab程序,便于修改调用
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskInitialization	  "in_size=@1;ini_idx=@2;idx_inc=@3;thrshld=@4"
";cycl_flag=@5;out_size=length(ini_idx);[v,w]=trigicon(0,25,get_param(gcb,'ori"
"entation'),2);[x,y]=trigicon(1,75,get_param(gcb,'orientation'),2);[u,z]=trigi"
"con(0,50,get_param(gcb,'orientation'),2);"
	  MaskDisplay		  "plot(0,0,100,100,x,y,v,w,u,z);disp('Buffer "
"dwn')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "2|[1 0]|[0 0]|1|0"
	  MaskTabNameString	  ",,,,"
	  System {
	    Name		    "hold"
	    Location		    [22, 74, 460, 244]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.196850, 0.196850, 0.196850, 0.196850]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [15, 55, 35, 75]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "in_2"
	      Position		      [40, 70, 60, 90]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "in_3"
	      Position		      [65, 85, 85, 105]
	      Port		      "3"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 2]
	      Position		      [290, 62, 330, 98]
	      Outputs		      "[out_size 1]"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [110, 59, 140, 101]
	      Inputs		      "[in_size 1 1]"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-function"
	      Ports		      [1, 1]
	      Position		      [185, 70, 235, 90]
	      FunctionName	      "regdown"
	      Parameters	      "ini_idx, idx_inc, thrshld, cycl_flag"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [390, 60, 410, 80]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_2"
	      Position		      [355, 80, 375, 100]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "S-function"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "S-function"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      DstBlock		      "out_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_2"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "out_2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_3"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "binary"
	  Position		  [480, 60, 500, 80]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Symbol"
	  Position		  [480, 140, 500, 160]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Bits"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "delay"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Shift register"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Shift register"
	  SrcPort		  2
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -5]
	    DstBlock		    "hold"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 10]
	    DstBlock		    "hold"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "clock"
	  SrcPort		  1
	  DstBlock		  "Shift register"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "hold"
	  SrcPort		  1
	  DstBlock		  "D/A "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Shift register"
	  SrcPort		  1
	  DstBlock		  "hold"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "delay"
	  SrcPort		  1
	  DstBlock		  "binary"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "D/A "
	  SrcPort		  1
	  DstBlock		  "Symbol"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "hold"
	  SrcPort		  2
	  Points		  [10, 0; 0, 35]
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Annotation {
	  Name			  "two bits are combined to a 4-ary symbol.\nM"
"SB first"
	  Position		  [267, 7]
	  VerticalAlignment	  "top"
	  UseDisplayTextAsClickCallback	off
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Channel"
      Ports		      [1, 1]
      Position		      [480, 114, 560, 156]
      SourceBlock	      "librnew/Channel"
      SourceType	      "AWGN channel, fixed parameter"
      ShowPortLabels	      off
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      m			      "0"
      variance		      "0.001"
      s			      "12345"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock"
      Position		      [245, 220, 265, 240]
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock1"
      Position		      [495, 20, 515, 40]
      Decimation	      "10"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Error rate"
      Ports		      [2]
      Position		      [910, 225, 990, 265]
      Orientation	      "down"
      CopyFcn		      "sbiterr([],[],[],'CopyBlock')"
      DeleteFcn		      "sbiterr([],[],[],'DeleteBlock')"
      LoadFcn		      "sbiterr([],[],[],'LoadBlock')"
      StartFcn		      "sbiterr([],[],[],'Start')"
      StopFcn		      "sbiterr([],[],[],'Stop')"
      NameChangeFcn	      "sbiterr([],[],[],'NameChange')"
      ShowPortLabels	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "Symbol/bit error counter"
      MaskDescription	      "Use the input data from the 1st port as the ref"
"erence signal to detect the number of errors and error rate of the 2nd signal"
"."
      MaskHelp		      "The signal from the first port must be a scalar"
". The second input port can be a vector with a delay to the first port signal"
". The comparison happens only at the sampling point."
      MaskPromptString	      "Bit per symbol:|Number of digits on display:|De"
"lay between 1st port and 2nd port:|Sample time (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"
      MaskVarAliasString      ",,,"
      MaskInitialization      "K=@1;num_lin=@2;TDelay=@3;Sample=@4;"
      MaskDisplay	      "disp('Error\\nmeter')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "2|10|12|1"
      MaskTabNameString	      ",,,"
      System {
	Name			"Error rate"
	Location		[255, 368, 509, 510]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.196850, 0.196850, 0.196850, 0.196850]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [15, 45, 35, 65]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_2"
	  Position		  [15, 60, 35, 80]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [65, 46, 100, 79]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-function"
	  Ports			  [1]
	  Position		  [130, 52, 195, 78]
	  FunctionName		  "sbiterr"
	  Parameters		  "num_lin, K, TDelay, Sample"
	}
	Line {
	  SrcBlock		  "in_2"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "S-function"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [285, 217, 355, 243]
      ShowName		      off
      Expr		      "cos(4*pi*u)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [535, 17, 630, 43]
      ShowName		      off
      Expr		      "2*cos(4*pi*u)"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [795, 117, 820, 143]
      Gain		      "1/20"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [380, 117, 405, 148]
      ShowName		      off
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [660, 112, 685, 143]
      ShowName		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Raised-Cosine\nreceive filter"
      Ports		      [1, 1]
      Position		      [700, 108, 780, 152]
      ShowPortLabels	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "R-C filter"
      MaskDescription	      "Design a raised cosine filter and use it to fil"
"ter the input signal."
      MaskHelp		      "This block designs a raised cosine filter using"
" the specified parameter. The filter is used to filter the input signal. You "
"can optionally use the sinc filter in the filtering computation."
      MaskPromptString	      "Symbol interval (sec):|Computation sampling tim"
"e (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interv"
"al):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter"
" (1 or 0, suggest 1):"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskInitialization      "td=@1;if length(td)>1,off=td(2);td=td(1);else,o"
"ff=0;end;ts=@2;R=@3;delay=@4;fil=@5;[num,den]=rcosine(1/td(1),1/ts(1),fil,R,d"
"elay);x=@6/2;"
      MaskDisplay	      "disp('R-C\\nfilter')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|.05|.5|6|'FIR'|0"
      MaskTabNameString	      ",,,,,"
      System {
	Name			"Raised-Cosine\nreceive filter"
	Location		[131, 545, 589, 761]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.196850, 0.196850, 0.196850, 0.196850]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"

⌨️ 快捷键说明

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