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

📄 sensing.mdl

📁 cognitive radio model programme with MATLAB
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	    DstBlock		    "Scope1"
	    DstPort		    4
	  }
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    Points		    [120, 0]
	    DstBlock		    "Sum"
	    DstPort		    5
	  }
	  Branch {
	    Points		    [0, 35; 320, 0]
	    DstBlock		    "Scope1"
	    DstPort		    5
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [20, 0; 0, -10]
	  DstBlock		  "AWGN\nChannel"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Reshape"
      Ports		      [1, 1]
      Position		      [550, 208, 580, 232]
      SourceBlock	      "simulink/Math\nOperations/Reshape"
      SourceType	      "Reshape"
      OutputDimensionality    "Row vector"
      OutputDimensions	      "[1,1]"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function1"
      Ports		      [1, 1]
      Position		      [690, 205, 740, 235]
      FunctionName	      "fft_view_CR"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [646, 275, 764, 310]
      Orientation	      "down"
      NamePlacement	      "alternate"
      FontName		      "Arial"
      Location		      [5, 60, 1157, 791]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Signal Generator"
      Ports		      [0, 1]
      Position		      [160, 275, 200, 335]
      FontName		      "Arial"
      TreatAsAtomicUnit	      off
      System {
	Name			"Signal Generator"
	Location		[180, 371, 445, 568]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [80, 25, 110, 55]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [70, 140, 100, 170]
	  Value			  "-1"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [155, 70, 185, 100]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  UniformRandomNumber
	  Name			  "Uniform Random\nNumber"
	  Position		  [25, 69, 55, 101]
	  SampleTime		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [210, 78, 240, 92]
	}
	Line {
	  SrcBlock		  "Uniform Random\nNumber"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [10, 0; 0, 35]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [15, 0; 0, -60]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Unbuffer"
      Ports		      [1, 1]
      Position		      [605, 196, 655, 244]
      SourceBlock	      "dspbuff3/Unbuffer"
      SourceType	      "Unbuffer"
      ic		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "spectrum selection"
      Ports		      [2, 1]
      Position		      [395, 185, 435, 245]
      TreatAsAtomicUnit	      off
      System {
	Name			"spectrum selection"
	Location		[376, 289, 721, 545]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 48, 55, 62]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [165, 213, 195, 227]
	  Port			  "2"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [220, 196, 265, 229]
	  FontName		  "Arial"
	  FontSize		  15
	  InputSameDT		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "frequency selection"
	  Ports			  [1, 1]
	  Position		  [80, 25, 120, 85]
	  FontName		  "Arial"
	  FontSize		  15
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "frequency selection"
	    Location		    [462, 234, 1087, 696]
	    Open		    on
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [105, 28, 135, 42]
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [35, 155, 65, 185]
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [225, 51, 270, 84]
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-Function"
	      Ports		      [1, 1]
	      Position		      [315, 50, 375, 80]
	      FunctionName	      "select_feq"
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Scope"
	      Ports		      [1]
	      Position		      [435, 119, 465, 151]
	      Location		      [1, 56, 1153, 833]
	      Open		      off
	      NumInputPorts	      "1"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      List {
		ListType		SelectedSignals
		axes1			""
	      }
	      DataFormat	      "StructureWithTime"
	    }
	    Block {
	      BlockType		      Sin
	      Name		      "Sine Wave"
	      Position		      [45, 190, 75, 220]
	      SineType		      "Time based"
	      Amplitude		      "0"
	      SampleTime	      "0.001"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [130, 150, 150, 170]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|++"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [420, 53, 450, 67]
	    }
	    Line {
	      SrcBlock		      "Sine Wave"
	      SrcPort		      1
	      Points		      [60, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [20, 0; 0, -10]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [25, 0; 0, -85]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "S-Function"
	      SrcPort		      1
	      Points		      [10, 0; 0, -5]
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [35, 0; 0, 25]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -5]
		DstBlock		"S-Function"
		DstPort			1
	      }
	      Branch {
		Points			[0, 65]
		DstBlock		"Scope"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [290, 208, 320, 222]
	}
	Line {
	  SrcBlock		  "frequency selection"
	  SrcPort		  1
	  Points		  [75, 0; 0, 150]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "frequency selection"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "spectrum sensing"
      Ports		      [1, 1]
      Position		      [195, 110, 235, 170]
      FontName		      "Arial"
      TreatAsAtomicUnit	      off
      System {
	Name			"spectrum sensing"
	Location		[407, 342, 1047, 737]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 48, 55, 62]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer"
	  Ports			  [1, 1]
	  Position		  [80, 30, 130, 80]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "1000"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reshape"
	  Ports			  [1, 1]
	  Position		  [165, 43, 195, 67]
	  SourceBlock		  "simulink/Math\nOperations/Reshape"
	  SourceType		  "Reshape"
	  OutputDimensionality	  "Row vector"
	  OutputDimensions	  "[1,1]"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-Function"
	  Ports			  [1, 1]
	  Position		  [385, 40, 445, 70]
	  FunctionName		  "dfs"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-Function1"
	  Ports			  [1, 1]
	  Position		  [305, 40, 355, 70]
	  FunctionName		  "fft_view"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Unbuffer"
	  Ports			  [1, 1]
	  Position		  [220, 31, 270, 79]
	  SourceBlock		  "dspbuff3/Unbuffer"
	  SourceType		  "Unbuffer"
	  ic			  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [480, 48, 510, 62]
	}
	Line {
	  SrcBlock		  "S-Function"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Reshape"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Reshape"
	  SrcPort		  1
	  DstBlock		  "Unbuffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Unbuffer"
	  SrcPort		  1
	  DstBlock		  "S-Function1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "S-Function1"
	  SrcPort		  1
	  DstBlock		  "S-Function"
	  DstPort		  1
	}
      }
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Interference"
      SrcPort		      1
      DstBlock		      "spectrum sensing"
      DstPort		      1
    }
    Line {
      SrcBlock		      "spectrum sensing"
      SrcPort		      1
      Points		      [140, 0]
      DstBlock		      "spectrum selection"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Signal Generator"
      SrcPort		      1
      Points		      [120, 0; 0, -75]
      DstBlock		      "spectrum selection"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Buffer"
      SrcPort		      1
      DstBlock		      "Reshape"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Reshape"
      SrcPort		      1
      DstBlock		      "Unbuffer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Unbuffer"
      SrcPort		      1
      DstBlock		      "S-Function1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "spectrum selection"
      SrcPort		      1
      Points		      [5, 0; 0, 5]
      DstBlock		      "Buffer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S-Function1"
      SrcPort		      1
      Points		      [5, 0; 0, 40]
      DstBlock		      "Scope"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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