Main Content

rectpulse

사각 펄스 성형

설명

예제

Y = rectpulse(X,nsamp)X에 대해 사각 펄스 성형을 수행하고 Y를 반환하며, 각 샘플을 nsamp번 반복하여 X의 샘플 레이트를 높입니다.

예제

모두 축소

변조된 심볼의 배열을 만듭니다. 첫 번째 채널(열)은 QPSK 변조 심볼을 포함합니다. 두 번째 채널은 16QAM 변조 심볼을 포함합니다.

M_psk = 4;   % PSK modulation order
M_qam = 16;  % QAM modulation order
nsymb = 10;  % Number of modulated symbols

ch1 = pskmod(randi([0 M_psk - 1],nsymb,1),M_psk,pi/4);
ch2 = qammod(randi([0 M_qam - 1],nsymb,1),M_qam);
X = [ch1 ch2];

변조된 심볼의 실수부와 허수부를 플로팅합니다.

figure
subplot(2,1,1)
stem(real(X))
grid on
xlabel('Symbols')
ylabel('\Re(X)')
subplot(2,1,2)
stem(imag(X))
grid on
xlabel('Symbols')
ylabel('\Im(X)')

Figure contains 2 axes objects. Axes object 1 with xlabel Symbols, ylabel \Re(X) contains 2 objects of type stem. Axes object 2 with xlabel Symbols, ylabel \Im(X) contains 2 objects of type stem.

심볼당 샘플 개수를 설정합니다.

nsamp = 4;

사각 펄스 성형을 수행하고 결과를 표시합니다.

Y = rectpulse(X,nsamp);
figure
subplot(2,1,1)
plot(real(Y),'-') 
grid on
xlabel('Samples')
ylabel('\Re(y)')
ylim([-3.5 3.5])
subplot(2,1,2)
plot(imag(Y),'-')
grid on
xlabel('Samples')
ylabel('\Im(Y)')
ylim([-3.5 3.5])

Figure contains 2 axes objects. Axes object 1 with xlabel Samples, ylabel \Re(y) contains 2 objects of type line. Axes object 2 with xlabel Samples, ylabel \Im(Y) contains 2 objects of type line.

입력 인수

모두 축소

입력 심볼로, 벡터 또는 행렬로 지정됩니다. X가 여러 행으로 구성된 행렬인 경우 이 함수는 각 열을 독립적인 채널로 처리합니다.

데이터형: double | single
복소수 지원 여부:

심볼당 샘플 개수로, 양의 정수로 지정됩니다.

데이터형: double | single

출력 인수

모두 축소

출력 샘플로, 벡터 또는 행렬로 반환됩니다.

  • 입력 X가 벡터인 경우 출력은 X의 각 샘플을 nsamp번 반복하여 L개 요소로 구성된 벡터입니다. 여기서 L은 length(X)*nsamp입니다.

  • 입력 X가 행렬인 경우 함수는 각 열을 독립적인 채널로 처리하며 출력은 L×M 행렬입니다. 여기서 L은 size(X,1)*nsamp이고 M은 size(X,2)입니다.

데이터형은 X와 동일합니다.

버전 내역

R2006a 이전에 개발됨