Pairwise difference between values of a vector
Ältere Kommentare anzeigen
Hello all, I want to calculate the mean of all absolute pairwise differences (Ei-Ej) from a long set of values. for example (3 1 2) the differences are 3-1=2, 3-2=1, 1-2=1 and the mean (2+1+1)/3=1.33. Thanks for helping
Akzeptierte Antwort
Weitere Antworten (1)
James Cai
am 31 Jan. 2018
2 Stimmen
Nowadays, dv = abs(v-v') returns the absolute pairwise differences.
Kategorien
Mehr zu Develop Apps Using App Designer 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!