このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
genqamdemod
一般的な直交振幅復調
説明
例
一般的な QAM 変調および復調
六角形のコンスタレーションを描く点を作成します。
inphase = [1/2 1 1 1/2 1/2 2 2 5/2]; quadr = [0 1 -1 2 -2 1 -1 0]; inphase = [inphase;-inphase]; inphase = inphase(:); quadr = [quadr;quadr]; quadr = quadr(:); const = inphase + 1i*quadr;
コンスタレーションをプロットします。
h = scatterplot(const);
入力データのシンボルを生成します。このコンスタレーションを使用してシンボルを変調します。
x = [3 8 5 10 7]; y = genqammod(x,const);
変調した信号 y
を復調します。
z = genqamdemod(y,const);
変調した信号を同じ Figure にプロットします。
hold on; scatterplot(y,1,0,'ro',h); legend('Constellation','Modulated signal'); hold off;
復調したデータと元のシーケンスの間のシンボル誤り数を求めます。
numErrs = symerr(x,z)
numErrs = 0
入力引数
y
— 複素エンベロープ
スカラー | ベクトル | 行列 | 3 次元配列
複素エンベロープ。数値のスカラー、ベクトル、行列または 3 次元配列として指定します。y
が複数の行をもつ行列の場合、この関数は行を個別に処理します。
const
— 信号マッピング
複素数ベクトル
信号マッピング。複素数ベクトルとして指定します。
データ型: double
| single
複素数のサポート: あり
出力引数
z
— メッセージ信号
スカラー | ベクトル | 行列 | 3 次元配列
メッセージ信号。数値のスカラー、ベクトル、行列または 3 次元配列として返されます。メッセージ信号は 0 ~ length
(const
)–1 の整数で構成されます。z
のデータ型は入力 x
のデータ型と同じです。
データ型: double
| single
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
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)