MATLAB: Pairwise matrix creation in matlab

mathematicsMATLABpairwise

Hi,
i have a row matrix =[1 2 3] and a column matrix as [1;2;3]
I want the output as attached in the image
Please let me know if you know this
Thanks in advance

Best Answer

clear all
a=[1 2 3];
Result=(a'./a)