MATLAB Answers

How to generate a symmetric Toeplitz matrix?

6 views (last 30 days)
Omar B.
Omar B. on 18 Jan 2020
Edited: Omar B. on 26 Jan 2020
How to generate a symmetric Toeplitz matrix ?

  0 Comments

Sign in to comment.

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

Show 2 older comments
Stephan
Stephan on 19 Jan 2020
Use linspace:
vec = linspace(-pi,pi,200);
res = toeplitz(vec);
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)

Sign in to answer this question.

Tags


Translated by