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

📄 qpswnymf.m

📁 matlab在通信原理中的应用
💻 M
📖 第 1 页 / 共 5 页
字号:

add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Constant']])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Constant']],...
		'Value','x',...
		'position',[210,155,230,175])

add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/out_1']])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/out_1']],...
		'position',[355,130,375,150])

add_block('built-in/Product',[sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Product']])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Product']],...
		'position',[155,90,180,110])

add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Zero-Order',13,'Hold']])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/Zero-Order',13,'Hold']],...
		'Sample time','ts',...
		'position',[205,84,240,116])

add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/in_1']])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse/in_1']],...
		'position',[35,185,55,205])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[50,40;60,40])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[125,40;130,40;130,95;150,95])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[235,165;250,165;250,140;290,140])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[325,140;350,140])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[60,195;280,195;290,150])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[95,195;95,105;150,105])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[185,100;200,100])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],[245,100;260,100;260,130;290,130])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],...
		'Mask Display','1/sinc',...
		'Mask Type','Impulse',...
		'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],...
		'Mask Translate','ts=@1;thr=@2;x=thr>0;')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],...
		'Mask Help','When the threshold is greater than zero, this block outputs an impulse signal, which begins at the raising edge of the second input and lasts the holding time. The impulse holds a constant amplitude, which equals the amplitude of the first input at the begining of the impulse. A clock raising edge will trigger next impulse. When the threshold is less or equal to zero, this block faithfully outputs the first input.')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],...
		'Mask Entries','ts\/x\/')


%     Finished composite block ['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse'].

set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_/Memory Impulse']],...
		'position',[155,30,225,70])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],[315,50;325,50])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],[60,40;150,40])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],[230,50;250,50])
add_line([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],[100,90;115,90;115,60;150,60])
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'Mask Display','R-C\nfilter',...
		'Mask Type','R-C filter')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'Mask Dialogue','Design a raised cosine filter and use it to filter the input signal.|Symbol interval (sec):|Computation sampling time (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interval):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter (1 or 0, suggest 1):')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'Mask Translate','td=@1;if length(td)>1,off=td(2);td=td(1);else,off=0;end;ts=@2;R=@3;delay=@4;fil=@5;[num,den]=rcosine(1/td(1),1/ts(1),fil,R,delay);x=@6/2;')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'Mask Help','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.')
set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'Mask Entries','1\/.05\/.5\/6\/''FIR/Sqrt''\/0\/')


%     Finished composite block ['Empf鋘ger/Wurzel-Nyquist',13,'Filter_'].

set_param([sys,'/',['Empf鋘ger/Wurzel-Nyquist',13,'Filter_']],...
		'position',[410,203,490,247])


%     Subsystem  ['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)'].

new_system([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],'Location',[96,182,645,417])

add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag_pt']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag_pt']],...
		'BackGround',5,...
		'Value','y2',...
		'position',[165,169,190,191])

add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real_pt']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real_pt']],...
		'BackGround',3,...
		'Value','y1',...
		'position',[170,84,195,106])

add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/out_1']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/out_1']],...
		'position',[495,85,515,105])

add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Minimum1']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Minimum1']],...
		'function name','arymimai',...
		'parameters','''min''',...
		'position',[415,85,475,105])

add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum2']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum2']],...
		'position',[370,78,390,107])

add_block('built-in/Product',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product1']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product1']],...
		'position',[300,130,325,150])

add_block('built-in/Product',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product']],...
		'position',[300,45,325,65])

add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum6']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum6']],...
		'ForeGround',4,...
		'inputs','+-',...
		'position',[230,123,250,152])

add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum1']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum1']],...
		'ForeGround',2,...
		'inputs','+-',...
		'position',[230,38,250,67])

add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold1']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold1']],...
		'ForeGround',4,...
		'Sample time','td',...
		'position',[120,114,155,146])

add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag']],...
		'Port','2',...
		'position',[45,120,65,140])

add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real']],...
		'position',[45,35,65,55])

add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold']])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold']],...
		'ForeGround',2,...
		'Sample time','td',...
		'position',[120,29,155,61])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[480,95;490,95])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[395,95;410,95])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[330,140;340,140;340,100;365,100])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[330,55;340,55;340,85;365,85])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[255,140;270,140;270,135;295,135])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[270,140;270,145;295,145])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[255,55;270,55;270,50;295,50])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[270,55;270,60;295,60])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[195,180;205,180;205,145;225,145])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[160,130;225,130])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[160,45;225,45])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[200,95;205,95;205,60;225,60])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[70,130;115,130])
add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[70,45;115,45])
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'Mask Display','QASK\nC-demap',...
		'Mask Type','QASK C-demap')
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'Mask Dialogue','Reverse the QASK map. Input in-phase\nand quadrature components from the\ntwo inputs. Output demapped signal.|Number of symbols on each circle NIC::|Radii for each circle RIC:|Phase shift on each circle PIC (rad):|Symbol interval and offset (sec):')
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'Mask Translate','N=@1;A=@2;P=@3;td=@4;y1=apkconst(N,A,P);y2=imag(y1);y1=real(y1);')
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'Mask Help','This block demaps a QASK mapped signal using circle 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 default offset is zero. Use function MODMAP to view the constellation.')
set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'Mask Entries','[4]\/[sqrt(2)]\/[pi/4]\/1\/')


%     Finished composite block ['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)'].

set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
		'position',[800,128,880,172])

add_block('built-in/Scope',[sys,'/','Empf鋘ger/r(t)'])
set_param([sys,'/','Empf鋘ger/r(t)'],...
		'orientation',3,...
		'Vgain','1.500000',...
		'Hgain','25.000000',...
		'Vmax','3.000000',...
		'Hmax','50.000000',...
		'Window',[320,340,960,440],...
		'position',[60,70,90,100])

add_block('built-in/Outport',[sys,'/',['Empf鋘ger/empfangenes',13,'Symbol']])
set_param([sys,'/',['Empf鋘ger/empfangenes',13,'Symbol']],...
		'position',[950,140,970,160])

add_block('built-in/Scope',[sys,'/','Empf鋘ger/v(t)'])
set_param([sys,'/','Empf鋘ger/v(t)'],...
		'orientation',3,...
		'Vgain','3.000000',...
		'Hgain','25.000000',...
		'Vmax','6.000000',...
		'Hmax','50.000000',...
		'Window',[320,740,960,840],...
		'position',[895,70,925,100])


%     Subsystem  ['Empf鋘ger/Schwellenwert-',13,'Entscheider'].

new_system([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],'Location',[159,417,473,588])

add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/out_1']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/out_1']],...
		'position',[265,70,285,90])

add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/in_1']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/in_1']],...
		'position',[35,30,55,50])

add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator']],...
		'Operator','>',...
		'position',[140,32,170,63])

add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Sum']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Sum']],...
		'inputs','+-',...
		'position',[215,64,235,91])

add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator1']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator1']],...
		'Operator','<',...
		'position',[140,92,170,123])

add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Constant']])
set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Constant']],...
		'Value','0',...
		'position',[65,105,85,125])
add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[60,40;135,40])
add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[95,40;95,100;135,100])
add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[90,115;135,115])
add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[110,115;110,55;135,55])

⌨️ 快捷键说明

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