1 0 2 0 ..
0 2 0 3 ..
2 0 3 0 ..
0 3 0 4 ..
3 0 4 0 ..
: : : :

1 Kommentar

Stephen23
Stephen23 am 10 Dez. 2018
@Azad Asadov: you tagged your question with "infinite matrix", which of course cannot be stored on any computer in the world.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Dez. 2018

2 Stimmen

Another way:
c = [1 0 2 0 3];
r = [3 0 4 0];
h = hankel(c,r)
You'll see
h =
1 0 2 0
0 2 0 3
2 0 3 0
0 3 0 4
3 0 4 0

Weitere Antworten (1)

Image Analyst
Image Analyst am 10 Dez. 2018

0 Stimmen

Try this:
m = [...
1 0 2 0; ...
0 2 0 3; ...
2 0 3 0; ...
0 3 0 4; ...
3 0 4 0]

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by