Pairwise matrix creation in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Haritha
am 31 Okt. 2018
Beantwortet: Stephen23
am 31 Okt. 2018
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
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Stephen23
am 31 Okt. 2018
>> 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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!