hankel
汉克尔矩阵
说明
示例
创建对称汉克尔矩阵
创建非对称汉克尔矩阵
用指定的列和行向量创建一个非对称汉克尔矩阵。
c = [2 4 6]; r = [6 5 4 3 2 1]; hankel(c,r)
ans = 3×6
2 4 6 5 4 3
4 6 5 4 3 2
6 5 4 3 2 1
创建另一个非对称汉克尔矩阵。如果列向量的最后一个元素与行向量的第一个元素不匹配,则 hankel
会发出警告,并将列的最后一个元素用作反对角线元素。
c = [1 2 3]; r = [4 5 7 9]; hankel(c,r)
Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.
ans = 3×4
1 2 3 5
2 3 5 7
3 5 7 9
用复数元素创建汉克尔矩阵
用复数行向量和列向量创建一个汉克尔矩阵。
c = [1+2i 2-4i -1+3i]; r = [-1+3i 3-1i 1-2i]; hankel(c,r)
ans = 3×3 complex
1.0000 + 2.0000i 2.0000 - 4.0000i -1.0000 + 3.0000i
2.0000 - 4.0000i -1.0000 + 3.0000i 3.0000 - 1.0000i
-1.0000 + 3.0000i 3.0000 - 1.0000i 1.0000 - 2.0000i
输入参数
c
— 汉克尔矩阵的第一列
标量 | 向量
汉克尔矩阵的第一列,指定为标量或向量。
数据类型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
复数支持: 是
r
— 汉克尔矩阵的最后一行
标量 | 向量
汉克尔矩阵的最后一行,指定为标量或向量。如果 c
的最后一个元素不同于 r
的第一个元素,则 hankel
对反对角线使用 c
的最后一个元素。
数据类型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
复数支持: 是
详细信息
汉克尔矩阵
在汉克尔矩阵中,沿每个反对角线的元素相等:
如果 c
是汉克尔矩阵的第一列,r
是汉克尔矩阵的最后一行,则 p = [c r(2:end)]
使用映射 Hi,j = pi+j-1 来完整确定汉克尔矩阵的所有元素。所有正方形汉克尔矩阵都是对称的。
扩展功能
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
GPU 数组
通过使用 Parallel Computing Toolbox™ 在图形处理单元 (GPU) 上运行来加快代码执行。
此函数完全支持 GPU 数组。有关详细信息,请参阅Run MATLAB Functions on a GPU (Parallel Computing Toolbox)。
分布式数组
使用 Parallel Computing Toolbox™ 在集群的组合内存中对大型数组进行分区。
此函数完全支持分布式数组。有关详细信息,请参阅Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox)。
版本历史记录
在 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)