ドキュメンテーション
最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
整数係数によるサンプルレートの増加
y = upsample(x,n)
y = upsample(x,n,phase)
例
y = upsample(x,n) は、サンプル間に n – 1 個のゼロを挿入して x のサンプルレートを上げます。x が行列の場合、この関数は各列を個別シーケンスとして扱います。
y
x
n
y = upsample(x,n,phase) では、アップサンプルしたシーケンスのオフセット分のサンプル数が指定されます。
phase
すべて折りたたむ
シーケンスのサンプルレートを係数 3 で増加させます。
x = [1 2 3 4]; y = upsample(x,3)
y = 1×12 1 0 0 2 0 0 3 0 0 4 0 0 ⋯
シーケンスのサンプルレートを係数 3 で増加させ、位相オフセット 2 を適用します。
x = [1 2 3 4]; y = upsample(x,3,2)
y = 1×12 0 0 1 0 0 2 0 0 3 0 0 4 ⋯
行列のサンプルレートを係数 3 で増加させます。
x = [1 2; 3 4; 5 6]; y = upsample(x,3)
y = 9×2 1 2 0 0 0 0 3 4 0 0 0 0 5 6 0 0 0 0
入力配列。ベクトルまたは行列として指定します。x が行列の場合、この関数は列を独立チャネルとして扱います。
例: cos(pi/4*(0:159)) + randn(1,160) は、ホワイト ガウス ノイズに含まれる正弦波を指定します。
cos(pi/4*(0:159)) + randn(1,160)
例: cos(pi./[4;2]*(0:159))' + randn(160,2) では 2 チャネルのノイズを含んだ正弦波を指定します。
cos(pi./[4;2]*(0:159))' + randn(160,2)
データ型: single | double 複素数のサポート: あり
single
double
アップサンプリング係数。正の整数で指定します。
データ型: single | double
0
オフセット。0 から n – 1 までの正の整数で指定します。
アップサンプリングされた配列。ベクトルまたは行列として返されます。y には x × n サンプルがあります。
使用上の注意と制限:
入力 n を定数として宣言するか、呼び出し関数内で関数 assert を使用して、n の上限を設定します。以下に例を示します。
assert
assert(n<10)
decimate | downsample | interp | interp1 | resample | spline | upfirdn
decimate
downsample
interp
interp1
resample
spline
upfirdn
MATLAB のコマンドを実行するリンクがクリックされました。
このリンクは、Web ブラウザーでは動作しません。MATLAB コマンド ウィンドウに以下を入力すると、このコマンドを実行できます。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office