horizontalBathtub
(削除済み) 水平方向のバスタブ曲線
説明
例
水平方向および垂直方向のバスタブ曲線のメソッド
デュアルディラックおよびランダム ジッターをもつ波形のアイ ダイアグラムを表示します。水平方向および垂直方向のバスタブ曲線を生成してプロットします。
サンプル レート、シンボルあたりのサンプル数、トレース数のパラメーターを指定します。
fs = 1000; sps = 200; numTraces = 1000;
アイ ダイアグラム オブジェクトを作成します。
ed = comm.EyeDiagram('SampleRate',fs,'SamplesPerSymbol',sps, ... 'SampleOffset',sps/2,'DisplayMode','2D color histogram', ... 'ColorScale','Logarithmic','EnableMeasurements',true, ... 'ShowBathtub','Both','YLimits',[-1.2 1.2]);
デュアルディラックおよびランダム ジッターをもつ波形を生成します。立ち上がりおよび立ち下がり時間として 3 ms を指定します。
src = commsrc.pattern('SamplesPerSymbol',sps, ... 'RiseTime',3e-3,'FallTime', 3e-3); src.Jitter = commsrc.combinedjitter('RandomJitter','on', ... 'DiracJitter','on','DiracDelta',[-5e-04 5e-04],'RandomStd',2e-4);
トレースごとに 2 つのシンボルを生成します。
x = src.generate(numTraces*2);
結果が繰り返されるようにする場合は、固定シードを使用して AWGN チャネルを介して信号を渡します。
randStream = RandStream('mt19937ar','Seed',5489); y = awgn(x,30,'measured',randStream);
アイ ダイアグラムを表示します。
ed(y)
アイ ダイアグラムの水平方向のバスタブ データを生成します。曲線をプロットします。
hb = horizontalBathtub(ed) semilogy([hb.LeftThreshold],[hb.BER],'b', ... [hb.RightThreshold],[hb.BER],'b') grid
hb = 1x13 struct array with fields: BER LeftThreshold RightThreshold
アイ ダイアグラムの垂直方向のバスタブ データを生成します。曲線をプロットします。
vb = verticalBathtub(ed) semilogx([vb.BER],[vb.LowerThreshold],'b', ... [vb.BER],[vb.UpperThreshold],'b') grid
vb = 1x13 struct array with fields: BER UpperThreshold LowerThreshold
入力引数
ed
— アイ ダイアグラム System object
System object
バスタブ曲線の情報を取得するアイ ダイアグラム System object。
出力引数
s
— 情報が含まれる構造体
struct
水平方向のバスタブ曲線についての情報が含まれる構造体。
BER
— ビット エラー レートの値
スカラー
対応する x 軸上の LeftThreshold
および RightThreshold
の値に対して horizontalBathtub プロットの Y 軸上にマッピングされたビット エラー レートの値。スカラーとして指定します。
データ型: double
LeftThreshold
— 左しきい値
スカラー
対応する x 軸上の BER
値に対するプロットで x 軸上にマッピングされた左しきい値。
データ型: double
RightThreshold
— 右しきい値
スカラー
対応する x 軸上の BER
値に対するプロットで x 軸上にマッピングされた右しきい値。
データ型: double
バージョン履歴
R2016b で導入R2022a: comm.EyeDiagram
は削除済み
horizontalBathtub は削除されました。信号のアイ ダイアグラムを表示するには、代わりに関数 eyediagram
を使用します。
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)