Extract two closest rows of a matrix
Mostrar comentarios más antiguos
Hello,
How can I extract two closest rows of a matrix and set one of them to zero?
thank you.
3 comentarios
dpb
el 20 de Mzo. de 2016
Closest to what and what defines "close"?
Image Analyst
el 20 de Mzo. de 2016
Well, here is the "set to zero" part
yourMatrix(closestRow, :) = 0;
to determine what scalar value you need for closestRow, you need to answer dpb's question.
amir
el 20 de Mzo. de 2016
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices 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!