MATLAB: Code relates to matrices

code realates to a matriceshomework

hello everybody, help me, please

Best Answer

You should be able to figure it out from the example in the hankel documentation:
c = 1:3;
r = 3:6;
h = hankel(c,r)
h =
1 2 3 4
2 3 4 5
3 4 5 6
How to write functions, etc, is covered very clearly in the Introductory Tutorials, which are highly recommended for all beginners:
Related Question