Azzera filtri
Azzera filtri

Pairwise matrix creation in matlab

2 visualizzazioni (ultimi 30 giorni)
Haritha
Haritha il 31 Ott 2018
Risposto: Stephen23 il 31 Ott 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

Risposta accettata

madhan ravi
madhan ravi il 31 Ott 2018
clear all
a=[1 2 3];
Result=(a'./a)

Più risposte (1)

Stephen23
Stephen23 il 31 Ott 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

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by