Properties
Similar Topics
Statistics
Comments
9
Participants
3
Subscribers
3
Votes
1
Views
670
Share
How to attach a column vector to a column and row matrix
Answered
How to attach a column vector to a matrix row column at the beginning or end of the column in the matrix
vr=Sequence(i, i, 1, 10)
vc=Zip({p}, p, l1)m1=Sequence(Sequence(i j, i, 1, 6, 1), j, 1, 10)
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2023 International GeoGebra Institute
@jospercomp Why is your row vector a simple list? For consistency (and better visualization) you should rather use a list containing a single list, i.e., something like {{1,2,3,4}}.
So here are some options in a bit more detail:
Let's start with adding row vectors as matrix rows:
Adding the row vector as a matrix column can be done similarly to all the row versions above, just use Transpose(m) instead of m and also put the whole thing in another Transpose, e.g. Transpose(Append(Transpose(m), Join(vr))) and so on.
Alternatively, adding as column can be done without the double Transpose but with the use of Zip instead (works again for all the versions above):
When working with a column vector (matrix with one column) instead, everything can be done similarly. All the versions above that use Join(vr) can be used exactly the same with Join(vc) instead, because Join basically does the same for row and column vectors. For the other versions you can just replace vr either by Transpose(vc) or by {Join(vc)}.
And I am sure there are other possibilites as well, using a variety of list commands.
ein bisschen verwirrend dein anliegen. (eine matrix besteht immer aus zeilen und spalten?)
um eine matrix um eine spalte zu erweitern musst du transponieren append, join eine zeile und wieder zurück transponieren.
zu matrix operationen siehe
https://www.geogebra.org/m/BpqJ28eP
Comments have been locked on this page!