I have the following matrices:
A=zeros(2,4);
D=[ 1 2;
3 4;
5 6;
7 8];
v=rand(1,8);
For example:
v= [0.8147 0.9058 0.1270 0.9134 0.6324 0.0975 0.2785 0.5469]
Now when I run A(D)=v, A becomes:
A=[0.8147 0.9058 0.1270 0.9134;
0.6324 0.0975 0.2785 0.5469]
When I change D entries to another values, I get different configurations of A, for example, if I put:
D=[ 8 7;
6 5;
4 3;
2 1];
then A becomes:
A=[0.5469 0.2785 0.0975 0.6324;
0.9134 0.1270 0.9058 0.8147]
Does any one know what this kind of indexing is?