このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
vco
電圧制御発振器
説明
例
チャープ信号のスペクトログラム
電圧制御発振器 (vco) と 4 つのガウス原子で構成される 2 秒間の信号を生成します。瞬時周波数はチャープ関数によって変調されます。サンプル レートは 14 kHz です。
fs = 14000; t = (0:1/fs:2)'; gaussFun = @(A,x,mu,f) exp(-(x-mu).^2/(2*0.01^2)).*sin(2*pi*f.*x)*A'; s = gaussFun([1 1 1 1],t,[0.2 0.5 1 1.75],[10 60 25 5]*100)/10; x = vco(chirp(t+.1,0,t(end),3).*exp(-2*(t-1).^2),0.2*fs,fs); s = s/10+x;
生成した信号のスペクトログラムをプロットします。90% のオーバーラップを指定してスペクトル漏れを和らげます。
pspectrum(s,fs,'spectrogram','OverlapPercent',90,'Leakage',0.5)
ノコギリ波信号のスペクトログラム
瞬間的な周波数が時間の三角形関数となる 10 kHz でサンプリングした 2 秒間の信号を生成します。
fs = 10000; t = 0:1/fs:2; x = vco(sawtooth(2*pi*t,0.75),[0.1 0.4]*fs,fs);
生成した信号のスペクトログラムをプロットします。0.80
の漏れを指定し、隣接するセグメント間のオーバーラップを 95% に指定します。
pspectrum(x,fs,'spectrogram','Leakage',0.80,'OverlapPercent',95)
入力引数
x
— 入力データ
実数ベクトル | 実数行列
入力データ。実数値のベクトルまたは実数値の行列として指定します。x
は、–1
~ 1
の範囲です。ここで、x
= –1
は 0 周波数出力に、x
= 0
は fc
に、x
= 1
は 2*
にそれぞれ対応します。fc
fc
— 搬送波周波数
fs
/4
(既定値) | 実数の正のスカラー
入力信号を変調するために使用される搬送周波数または基準周波数。実数の正のスカラーとして指定します。
fs
— サンプル レート
正のスカラー
サンプル レート。正のスカラーで指定します。サンプル レートは単位時間あたりのサンプル数です。時間の単位が秒の場合、サンプル レートの単位は Hz です。
バージョン履歴
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)