I have the below data:
data =[... 1.0000 1.0000 1.0000 53.1100;... 1.0000 2.0000 2.0000 59.0900;... 2.0000 1.0000 2.0000 71.3100;... 2.0000 2.0000 1.0000 70.2400]
Now I want to get a 'variable'–Data as below:
Data=[53.11+59.09 53.11+71.31 53.11+70.24; 71.31+70.24 59.09+70.24 59.09+71.31]
I can get 'Data' by 'for' cycle function but I want to do this work by other better method.
The addition logic is that:
take column 2 of data for example, both data(1,2) and data(3,2) equal 1.0000, so add data(1,4) and data(3,4) to get Data(1,2).
Best Answer