hello, I have a data matrix looks like below.
A=[4 5 0 0 0 10 0 15 0 0.192184 5 0 0 0 15 0 20 0 0.065484 5 0 0 0 20 0 25 0 0.026624 5 0 0 0 25 0 30 0 0.014464 5 0 0 0 30 0 35 0 0.007084 5 0 0 0 35 0 40 0 0.004874 15 0 10 0 20 0 25 0 0.316734 15 0 10 0 25 0 30 0 0.094474 15 0 10 0 30 0 35 0 0.034304 15 0 10 0 35 0 40 0 0.020084 15 0 10 0 40 0 45 0 0.010024 15 0 10 0 45 0 50 0 0.005024 15 0 10 0 50 0 5 0 0.334944 10 0 15 0 5 0 0 0 0.191504 20 0 15 0 25 0 30 0 0.433424 20 0 15 0 30 0 35 0 0.102934 20 0 15 0 35 0 40 0 0.049984 20 0 15 0 40 0 45 0 0.022614 20 0 15 0 45 0 50 0 0.010384 20 0 15 0 50 0 55 0 0.005234 20 0 15 0 55 0 10 0 0.540304 15 0 20 0 10 0 5 0 0.377954 15 0 20 0 5 0 0 0 0.06513];
Basically,I want compare row by row based on column [ 2 4 6 8]. for example,first row column 2,4, 6,8 is 5,0,10,15. and the 14th row column 2,4,6,8 is 10,15,5,0. In this case, I need the index of the two rows since I only want one row. For a second example,please compare 2nd and 15th row,2nd row has 5,0,15,20 and 15th row has 15,20,5,0. This is just part of my data, I have many reciprocol measurements which is roughly the same as I showed above.If anyone knows how can I solve this problem,please let me know. I do not want change the order of my data. Thanks
Best Answer