Hi,
Here's an interesting question :)
I have two "vectors of matrices" which I want to tile like the hankel function does for regular vertices. For example: Column Vector:
10
00
20
00
30
00
Row vector:
30 40 50 60
00 00 00 00
The resulting matrix needs to be:
10 20 30 40
00 00 00 00
20 30 40 50
00 00 00 00
30 40 50 60
00 00 00 00
Note that the 0 values can be changed, the resulting structure is the important part.
A related question: I looked in the command "edit repmat" and saw some interesting syntax I couldn't find help for:
A=[1,3;2,4];
X=[1,1;2,2];
B=A(X,X);
and B ends up being
1 3 1 3
2 4 2 4
1 3 1 3
2 4 2 4
which is basically repmat(A,2,2);
So my question is, what is this syntax: A(X,X)?
Thanks a lot!
Ofer