I found the error guys, it is on the multiplication of the following lines:
CombFactor*submatrix(MatrixLoad,NoOfLoad*k,NoOfLoad(k+1)-1,0,NoOfForce-1)
- The difference between NoOfLoad(k+1)-1] - [NoOfLoad*k] should be equal to the number of loads, (i.e NoOfLoad-1 to account 0, so i change the...