How to generate an array of Hankel and Toeplitz from a defined array?

조회 수: 1 (최근 30일)
GTA
GTA 2019년 7월 4일
댓글: GTA 2019년 7월 5일
How to generate a matrix of H and a matrix of T, and my matrix to generate these other two has dimension 4x4
1 22 3 4
23 32 11 10
55 88 63 3
4 8 10 5
with the H matrix being
22 3 4
3 4 0
4 0 0
and the T matrix being
1 22 3
0 1 22
0 0 22
Thus, the matrices of H and T have this behavior described in the last two matrices. Thanks any help!

채택된 답변

Matt J
Matt J 2019년 7월 4일
A =
1 22 3 4
23 32 11 10
55 88 63 3
4 8 10 5
>> H=hankel(A(1,2:4))
H =
22 3 4
3 4 0
4 0 0
>> T=triu(toeplitz(A(1,1:3)))
T =
1 22 3
0 1 22
0 0 1

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by