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

📄 dsss.mdl

📁 《Home Networking Basis》(《家庭网络基础》)的配套MATLAB源代码。包括了以太网和无线以太网等模型。
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  DstBlock		  "Decimation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Decimation1"
	  SrcPort		  1
	  DstBlock		  "Barker Code2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Decimation"
	  SrcPort		  1
	  DstBlock		  "Barker Code3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Barker Code3"
	  SrcPort		  1
	  DstBlock		  "Despread1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Barker Code2"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, -35]
	    DstBlock		    "Despread"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [60, 0]
	    Branch {
	      Points		      [0, 40]
	      DstBlock		      "Abs"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [70, 0]
	      DstBlock		      "Sample\nand Hold"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Sample\nand Hold"
	  SrcPort		  1
	  DstBlock		  "Sign"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Abs"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Sample\nand Hold"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Bandpass"
	  DstPort		  1
	}
	Annotation {
	  Position		  [169, 69]
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Recovered\nSymbol"
      Ports		      [1]
      Position		      [465, 104, 495, 136]
      Floating		      off
      Location		      [19, 499, 1035, 738]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-0.1"
      YMax		      "0.1"
      SaveToWorkspace	      off
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "10000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Transmitter"
      Ports		      [1, 1]
      Position		      [150, 90, 240, 150]
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Transmitter"
	Location		[106, 129, 881, 340]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 95, 55, 109]
	  Port			  "1"
	  Interpolate		  on
	}
	Block {
	  BlockType		  DiscreteFilter
	  Name			  "Barker Code"
	  Position		  [275, 87, 335, 123]
	  Numerator		  "[1 -1 1 1 -1 1 1 1 -1 -1 -1]"
	  Denominator		  "[1]"
	  SampleTime		  "1/11e6"
	  Realization		  "auto"
	}
	Block {
	  BlockType		  DiscreteFilter
	  Name			  "Barker Code1"
	  Position		  [275, 142, 335, 178]
	  Numerator		  "[1 -1 1 1 -1 1 1 1 -1 -1 -1]"
	  Denominator		  "[1]"
	  SampleTime		  "1/11e6"
	  Realization		  "auto"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [80, 135, 110, 165]
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Sin
	  Name			  "Cosin"
	  Position		  [535, 60, 565, 90]
	  Amplitude		  "1"
	  Frequency		  "2*pi*11e6"
	  Phase			  "-pi/2"
	  SampleTime		  "1/110e6"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [80, 85, 110, 115]
	  Gain			  "2"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Interpolation"
	  Ports			  [1, 1]
	  Position		  [175, 87, 240, 123]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[1 0 0 0 0 0 0 0 0 0 0 0]"
	  L			  "11"
	  framing		  "Maintain input frame size"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Interpolation1"
	  Ports			  [1, 1]
	  Position		  [175, 142, 240, 178]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[1 0 0 0 0 0 0 0 0 0 0 0]"
	  L			  "11"
	  framing		  "Maintain input frame size"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Interpolation2"
	  Ports			  [1, 1]
	  Position		  [370, 87, 435, 123]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[1 0 0 0 0 0 0 0 0 0 0]"
	  L			  "10"
	  framing		  "Maintain input frame size"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Interpolation3"
	  Ports			  [1, 1]
	  Position		  [370, 142, 435, 178]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[1 0 0 0 0 0 0 0 0 0 0]"
	  L			  "10"
	  framing		  "Maintain input frame size"
	}
	Block {
	  BlockType		  DiscreteFilter
	  Name			  "Lowpass"
	  Position		  [465, 87, 525, 123]
	  Numerator		  "[0.0004 0.0017 0.0025 0.0017 0.0004]"
	  Denominator		  "[1 -3.1806 3.8612 -2.1122 0.4383]"
	  SampleTime		  "1/110e6"
	  Realization		  "auto"
	}
	Block {
	  BlockType		  DiscreteFilter
	  Name			  "Lowpass1"
	  Position		  [465, 142, 525, 178]
	  Numerator		  "[0.0004 0.0017 0.0025 0.0017 0.0004]"
	  Denominator		  "[1 -3.1806 3.8612 -2.1122 0.4383]"
	  SampleTime		  "1/110e6"
	  Realization		  "auto"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [590, 81, 635, 114]
	  Inputs		  "2"
	  Multiplication	  "Element-wise(.*)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [590, 136, 635, 169]
	  Inputs		  "2"
	  Multiplication	  "Element-wise(.*)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sin"
	  Position		  [535, 115, 565, 145]
	  Amplitude		  "1"
	  Frequency		  "2*pi*11e6"
	  Phase			  "0"
	  SampleTime		  "1/110e6"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [135, 95, 155, 115]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [675, 111, 695, 149]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Scope
	  Name			  "Symbol"
	  Ports			  [1]
	  Position		  [185, 19, 215, 51]
	  Floating		  off
	  Location		  [18, 241, 1033, 480]
	  Open			  on
	  NumInputPorts		  "1"
	  TickLabels		  "OneTimeTick"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "0.0001"
	  YMin			  "-5"
	  YMax			  "5"
	  SaveToWorkspace	  off
	  SaveName		  "ScopeData"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  on
	  MaxDataPoints		  "10000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [720, 125, 750, 139]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Interpolation"
	  SrcPort		  1
	  DstBlock		  "Barker Code"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, -70]
	    DstBlock		    "Symbol"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      DstBlock		      "Interpolation"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 55]
	      DstBlock		      "Interpolation1"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Cosin"
	  SrcPort		  1
	  Points		  [0, 15]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sin"
	  SrcPort		  1
	  Points		  [0, 15]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -15]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Interpolation1"
	  SrcPort		  1
	  DstBlock		  "Barker Code1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Barker Code"
	  SrcPort		  1
	  DstBlock		  "Interpolation2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Barker Code1"
	  SrcPort		  1
	  DstBlock		  "Interpolation3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Interpolation3"
	  SrcPort		  1
	  DstBlock		  "Lowpass1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Interpolation2"
	  SrcPort		  1
	  DstBlock		  "Lowpass"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Lowpass"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Lowpass1"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Data Sequence"
      SrcPort		      1
      DstBlock		      "Transmitter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Transmitter"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	Points			[0, -80]
	DstBlock		"Carrier"
	DstPort			1
      }
      Branch {
	DstBlock		"Receiver"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Receiver"
      SrcPort		      1
      DstBlock		      "Recovered\nSymbol"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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