I have a table that is 5×7 (see below), I want MATLAB to choose the first cell from the first row (23.869) and then go to the second row and find the closest number to the number in the first raw, which is 25.861, and then go the third row and find the closest number to the number in the first row and so on to the row number 5 and then I want MATLAB to calculate the average of those numbers. Then I want to repeat the same process on the second cell, third cell, … seventh cell.
How can I do that, any idea?
23.869 111.52 348.59 241.02 167.31 539.84 802.81111.52 25.861 350.59 241.02 161.33 537.85 027.37 350.24 113.41 240.78 181.08 537.33 808349.27 25.908 237.49 111.74 175.61 539.59 325.3225.787 113.44 350.51 232.97 537.63 804.73 0
Best Answer