## Relate a value obtained with values that formed it (Vector Relationship)

### Ricardo Gutierrez (view profile)

on 14 Aug 2019
Latest activity Commented on by Ricardo Gutierrez

on 15 Aug 2019

### the cyclist (view profile)

Hello good day.
I hope you can support me in the following.
dx1 dy1 dx2 dy2 SLL
0.81 1.46 1.92 1.77 87.64
0.98 1.33 2.11 1.53 55.99
0.22 1.64 1.73 1.35 84.11
0.55 1.42 2.30 1.40 116.42
In the first iteration of the code, the 1st line of values of dx and dy is generated (0.81 1.46 1.92 1.77)
These data are processed and result in the 1st SLL value of 87.64
In the second iteration of the code, the 2nd line of values of dx and dy is generated (0.98 1.33 2.11 1.53)
These data are processed and result in the 2nd SLL value of 55.99
And so until the 4th iteration, the dx and dy values are processed and an SLL of 116.42 is obtained
How can I know, the dx and dy values that generated the minimum SLL value?
In other words, from a minimum value of SLL know the values of dx and dy that generated that value
Taking into account that more than 1000 iterations will be made
I look forward to your valuable help.
Greetings.

### the cyclist (view profile)

on 14 Aug 2019

Assuming those are all numeric vectors of the same length, then
[min_SLL,min_idx] = min(SLL);
min_dx1 = dx1(min_idx);
min_dy1 = dy1(min_idx);

#### 1 Comment

Ricardo Gutierrez

### Ricardo Gutierrez (view profile)

on 15 Aug 2019
Excellent !!!! Genius
This worked
Thank you.