Hi I am trying to compare two arrays and apply different mathematical operations here...
a = [10 20 30 40];
b = [20 30 30 10];
I want to compare first index of two arrays and if the first index of first array is bigger than the second array one, take the first value and return it
If its not, take an average of two and return.
So it will return this...
Could you help me with finding this?