Pairwise difference between values of a vector
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
James Cai
2018년 1월 31일
2 개 추천
Nowadays, dv = abs(v-v') returns the absolute pairwise differences.
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!