Pairwise matrix creation in matlab

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

 採用された回答

madhan ravi
madhan ravi 2018 年 10 月 31 日

0 投票

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

その他の回答 (1 件)

Stephen23
Stephen23 2018 年 10 月 31 日

0 投票

>> R = [1,2,3];
>> C = [1;2;3];
>> C./R
ans =
1.00000 0.50000 0.33333
2.00000 1.00000 0.66667
3.00000 1.50000 1.00000

カテゴリ

ヘルプ センター および File ExchangeInterpolation についてさらに検索

質問済み:

2018 年 10 月 31 日

回答済み:

2018 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by