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

1 visualización (últimos 30 días)
Ricardo Gutierrez el 14 de Ag. de 2019
Comentada: Ricardo Gutierrez el 15 de Ag. de 2019
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.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

the cyclist el 14 de Ag. de 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 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Ricardo Gutierrez el 15 de Ag. de 2019
Excellent !!!! Genius
This worked
Thank you.

Iniciar sesión para comentar.

### Categorías

Más información sobre Logical en Help Center y File Exchange.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by