Subtracting one column in matrix 1 from each column in matrix 2
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pawel Szczepanowski
am 16 Dez. 2021
Kommentiert: Pawel Szczepanowski
am 17 Dez. 2021
Hi, I have to matrix (M_1, size 90x31 and M_2, size 90x130), i would like to subtract one column in matrix M_1 from each column in matrix M_2 and repeat this for each columns in matrix M_1 (31 times), and the result is a matrix ( there are 31 rows and 130 columns. Any ideas?
Thank you in advance.
4 Kommentare
Image Analyst
am 16 Dez. 2021
What do the rows and columns represent? Do you have a 90 or 130 dimensional space? Or is each column just the location, like the x value along a number line? Have you seen pdist2() in the Stats toolbox?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!