How to generate a symmetric Toeplitz matrix?

1 view (last 30 days)
How to generate a symmetric Toeplitz matrix ?

Accepted Answer

Stephan
Stephan on 18 Jan 2020
Edited: Stephan on 18 Jan 2020
>> toeplitz([-pi 0 pi])
ans =
-3.1416 0 3.1416
0 -3.1416 0
3.1416 0 -3.1416
>> toeplitz([-pi -pi/2 0 pi/2 pi])
ans =
-3.1416 -1.5708 0 1.5708 3.1416
-1.5708 -3.1416 -1.5708 0 1.5708
0 -1.5708 -3.1416 -1.5708 0
1.5708 0 -1.5708 -3.1416 -1.5708
3.1416 1.5708 0 -1.5708 -3.1416
  5 Comments
Stephan
Stephan on 19 Jan 2020
Did you notice that you can accept and/or vote for useful answers?

Sign in to comment.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!