Hallo!
So verketten Sie beispielsweise die beiden Matrizen:
mat1=[1.05 0.17 1.64 ., 2.06 0.81 0.63 ., 0.23 1.87 1.24 -8, 0.72 0.42 0.43 -8, 0.59 0.17 0.67 -8];
mat2=[2.78 0 0.59 -8, 1.85 . 1.24 -8, 1.19 0.86 0.75 8]
Sie verwenden den vertikalen Verkettungsoperator, da beide Spalten die gleiche Anzahl haben.
mat1 = [1.05 0.17 1.64 .,
2.06 0.81 0.63 .,
0.23 1.87 1.24 -8,
0.72 0.42 0.43 -8,
0.59 0.17 0.67 -8];
mat2 = [2.78 0 0.59 -8,
1.85 . 1.24 -8,
1.19 0.86 0.75 8];
result = mat1 |/ mat2;
show( mat1, mat2, result );
/*
mat1 =
[ 1.05 0.17 1.64 .,
2.06 0.81 0.63 .,
0.23 1.87 1.24 -8,
0.72 0.42 0.43 -8,
0.59 0.17 0.67 -8];
mat2 =
[ 2.78 0 0.59 -8,
1.85 . 1.24 -8,
1.19 0.86 0.75 8];
result =
[ 1.05 0.17 1.64 .,
2.06 0.81 0.63 .,
0.23 1.87 1.24 -8,
0.72 0.42 0.43 -8,
0.59 0.17 0.67 -8,
2.78 0 0.59 -8,
1.85 . 1.24 -8,
1.19 0.86 0.75 8];
*/
|/ ist vertikal, || ist horizontal, aber Sie haben eine unterschiedliche Anzahl von Zeilen, sodass horizontal nicht funktioniert.