How to find the minimum difference between the 3 elements of a vector in app designer?
Mostrar comentarios más antiguos
I need to group the elements of a matrix 3 by 3 with the minimum difference between them. I found something like that: min(min(abs(X(1)-X2))), but l have 3 values.
6 comentarios
Let's say the input is this -
y = magic(3)
What should be the output? and what logic is followed to obtain the output?
Dyuman Joshi
el 11 de Dic. de 2023
What is the minimum difference here? How is it calculated?
piston_pim_offset
el 11 de Dic. de 2023
Editada: piston_pim_offset
el 11 de Dic. de 2023
Dyuman Joshi
el 11 de Dic. de 2023
Editada: Dyuman Joshi
el 11 de Dic. de 2023
I am asking what logic did you follow to get that output from that particular input.
How do you define minimum difference?
piston_pim_offset
el 11 de Dic. de 2023
Respuesta aceptada
Más respuestas (1)
Sulaymon Eshkabilov
el 11 de Dic. de 2023
0 votos
Try to implement pdist2()
1 comentario
piston_pim_offset
el 11 de Dic. de 2023
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!