このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
rectpulse
矩形パルス整形
説明
例
サンプル レートの増加
変調されたシンボルから成る配列を作成します。最初のチャネル (列) には QPSK 変調されたシンボルが格納されます。2 番目のチャネルには 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)')
シンボルあたりのサンプル数を設定します。
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])
入力引数
X
— 入力シンボル
ベクトル | 行列
入力シンボル。ベクトルまたは行列として指定します。X
が複数の行を含む行列の場合、この関数は列を独立チャネルとして扱います。
データ型: double
| single
複素数のサポート: あり
nsamp
— シンボルあたりのサンプル数
正の整数
シンボルあたりのサンプル数。正の整数として指定します。
データ型: double
| single
出力引数
バージョン履歴
R2006a より前に導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)