place array in a matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
monkey_matlab
am 15 Okt. 2016
Beantwortet: Geoff Hayes
am 15 Okt. 2016
Hello, I have these points:
x1 = (1,0), x2 = (0.5,1), x3 = (0.5,1.5), x4 = (0, -1), x5 = (-1,1), x6 = (0.5, -1)
How do I go about generating a 6 x 6 matrix with entries
x1'x1 x1'x2 x1'x3 x1'x4 x1'x5 x1'x6
x2'x1 x2'x2 x2'x3 x2'x4 x2'x5 x2'x6
x3'x1 x3'x2 x3'x3 x3'x4 x3'x5 x3'x6
x4'x1 x4'x2 x4'x3 x4'x4 x4'x5 x4'x6
x5'x1 x5'x2 x5'x3 x5'x4 x5'x5 x5'x6
x6'x1 x6'x2 x6'x3 x6'x4 x6'x5 x6'x6
0 Kommentare
Akzeptierte Antwort
Geoff Hayes
am 15 Okt. 2016
Perhaps I'm misunderstanding but if
x = [1.0000 0
0.5000 1.0000
0.5000 1.5000
0 -1.0000
-1.0000 1.0000
0.5000 -1.0000];
which is a 6x2 array, then wouldn't
x*x'
be the desired 6x6 array?
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!