How to generate all pairwise differences between two vectors

Hi,
how can I generate a new vector of all the pairwise differences between two existing vectors?
thanks,
Tamir

Réponses (4)

Tamir Eisenstein
Tamir Eisenstein le 15 Fév 2019
Modifié(e) : Tamir Eisenstein le 15 Fév 2019
Hi Andrei, I have a small follow-up question:
How can I generate each difference value in "out" to be a percentage from b [i.e ((a-b)/b)*100 ] and not as a "raw" value?
Thanks!
Tamir

Catégories

En savoir plus sur Discrete Math dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by