このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
dftmtx
離散フーリエ変換行列
説明
例
FFT と DFT 行列
離散フーリエ変換を計算する場合、実際には、DFT 行列ではなく、FFT を使用したほうが効率的です。FFT のほうがメモリ消費量も少なくてすみます。どちらの方法を使用しても結果は同じです。
x = 1:256; y1 = fft(x); n = length(x); y2 = x*dftmtx(n); norm(y1-y2)
ans = 6.9611e-12
入力引数
n
— 離散フーリエ変換の長さ
正の整数
離散フーリエ変換の長さ。整数として指定します。
データ型: single
| double
出力引数
a
— 離散フーリエ変換行列
行列
離散フーリエ変換行列。行列として返されます。
詳細
離散フーリエ変換行列
"離散フーリエ変換行列" は複素数行列であり、そのベクトルとの行列積により、ベクトルの離散フーリエ変換が計算されます。dftmtx
では、単位行列の FFT を使用して、変換行列が生成されます。
行ベクトル x
の場合、
y = dftmtx(n)*x
y = fft(x,n)
と同じ結果になります。逆離散フーリエ変換行列は、次のとおりです。ainv = conj(dftmtx(n))/n
拡張機能
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)