I have to analysis a base data where I have to develop two matrices, namely speed-acceleration frequency matrix and normalized speed-acceleration matrix. The speed-acceleration frequency matrix is the frequency of occurance of different range of acceleration corresponding to a speed values. From this speed-acceleration frequency matrix, i have to generate the normalized speed-acceleration matrix by normalizing the entries on percentage basis so that the total of all the velocity-acceleration entries sum to 100.
I already managed to construct the first matrix but cant the second one.
Can anybody help me to generate this type code/algorithm so that i can generate this 2nd matrix?