Hi.
I have 2 or more arrays and i want to merge and sorting and make the average in value if the key is the same.
If the value of array_1_x exist in other arrays_x he keeps this value and is the mean of the corresponding Array_Y.
If the value of array_1_x does not exist in other arrays_x he usually keeps the value
Exemple:
1st data:
array_1_y=[0 3 6 10] y axis
array_1_x=[0 0,2 0,3 0,5] x axis
2nd data:
array_2_y=[1 56 7 10] y axis
array_2_x=[0 0,1 0,3 0,4] x axis
What i want:
array_y= [0,5 6 3 6,5 10 10]
array_x= [0 0,1 0,2 0,3 0,4 0,5]
I’m sorry for my english.
Thanks for the help