"I have no idea about programming in matlab and I can't understand this part"
a) d9=[d9 d8];
will concatenate the matrix d9 and d8 and store result in d9. Other way is that it just append matrix d8 to d9
Example :
>> a=[1 2;3 4]
a =
1 2
3 4
>> b=[5 6;7 8]
b =
5 6
7 8
>> a=[a b]
a =
1 2 5 6
3 4 7 8
b) d10=d9(:,2:10);
: is colon operator extensively used for vector manipulation, sub-scripting and creating for loops iterator
Here,
second subscript 2:10 means the columns number 2 3 4...10 in d9
first subscript : all rows in d10
So d10 is assigned by all elements in column 2 to 10 from all rows of d9.
Example :
>> c=a(:,2:4)
c =
2 5 6
4 7 8
c) d5=[d6 d10 d7];
Again similar to first one, concatenates matrices d6 d10 and d7 and assign the result to d5.