필터 지우기
필터 지우기

Pairwise matrix creation in matlab

조회 수: 2 (최근 30일)
Haritha
Haritha 2018년 10월 31일
답변: Stephen23 2018년 10월 31일
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일
clear all
a=[1 2 3];
Result=(a'./a)

추가 답변 (1개)

Stephen23
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

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by