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
采纳的回答
更多回答(1 个)
Stephen23
2018-10-31
>> 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 Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!