声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1754|回复: 2

[编程技巧] 请教:如何构造hankel矩阵

[复制链接]
发表于 2008-12-14 21:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
比如我有一列数据或几列数据,我想构造一个hankel矩阵怎么做,我想问的是如何控制hankel矩阵的维数。
不是直接hankel一下了事。
回复
分享到:

使用道具 举报

发表于 2008-12-15 13:09 | 显示全部楼层
Hankel


Hankel matrix

Syntax

H = hankel(c)
H = hankel(c,r)



Description


H = hankel(c) returns the square Hankel matrix whose first column is c and whose elements are zero below the first anti-diagonal.

H = hankel(c,r) returns a Hankel matrix whose first column is c and whose last row is r. If the last element of c differs from the first element of r, the last element of c prevails.

Definition


A Hankel matrix is a matrix that is symmetric and constant across the anti-diagonals, and has elements h(i,j) = p(i+j-1), where vector p = [c r(2:end)] completely determines the Hankel matrix.

Examples


A Hankel matrix with anti-diagonal disagreement is
c = 1:3; r = 7:10;
h = hankel(c,r)
h =
    1    2    3    8
    2    3    8    9
    3    8    9   10

p = [1 2 3 8 9 10]
 楼主| 发表于 2008-12-15 16:55 | 显示全部楼层
谢谢你!
这个我看了,关键是还是不懂。
比如:我有3列数据,想用这三列构造一个hankel矩阵,怎么控制维数,主要是列数控制,比如我需要构造为10列的hankel矩阵。
直接hankel的话,hankel矩阵的行数=列数=原矩阵的行数*列数
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-22 23:34 , Processed in 0.050977 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表