How to create code for toeplitz matrix

4 次查看(过去 30 天)
I have Y = [1,2,3,4] and I want to create
YY =
[1 2 3 4
2 1 2 3
3 2 1 2
4 3 2 1]
YY = toeplitz (Y(1,1:4)) can easily give me this result. However, I will like to create my own code.
I will appreciate any help.

采纳的回答

Tesfaye Girma
Tesfaye Girma 2021-3-10
fipref('NumericTypeDisplay','short');
format short g
a = fi([1 2 3],true,8,5)
b = fi([1 4 8],true,16,10)
toeplitz(a,b)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by