Extract two closest rows of a matrix
Ältere Kommentare anzeigen
Hello,
How can I extract two closest rows of a matrix and set one of them to zero?
thank you.
3 Kommentare
dpb
am 20 Mär. 2016
Closest to what and what defines "close"?
Image Analyst
am 20 Mär. 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
am 20 Mär. 2016
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!