<![CDATA[How to attach a column vector to a column and row matrix]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix
Thu, 01 Apr 2021 18:21:23 +0000Wed, 31 Mar 2021 13:05:16 +0000Zend_Feed<![CDATA[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]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302122
Wed, 31 Mar 2021 13:53:06 +0000<![CDATA[To add a column to a matrix, what commands should I use to transpose, add and join a "first or last" row and transpose again. https://wiki.geogebra.org/e...]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302142
Wed, 31 Mar 2021 18:06:33 +0000<![CDATA[Append( matrix, column vector in row) working fine but Append(, column vector in row.matrix) is not working correctly.]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302144
Wed, 31 Mar 2021 18:10:06 +0000<![CDATA[@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: Append(m, Join(vr)) -> adds after last rowJoin({m, vr}) -> adds after last rowJoin({vr, m}) -> adds before first rowInsert(vr, m, j) -> inserts at row j 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): Zip(Append(a, b), a, m, b, Join(vr)) -> adds after last columnZip(Join({a, {b}}), a, m, b, Join(vr)) -> adds after last columnZip(Join({{b}, a}), a, m, b, Join(vr)) -> adds before first columnZip(Insert(b, a, j), a, m, b, Join(vr)) -> inserts at column j 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.]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302156
Wed, 31 Mar 2021 21:21:46 +0000<![CDATA[It is incorrect: Append(m, Join(vr)) -> adds after last rowIs is correct: Append(m1, Join(vc)) -> adds after last rowIt is incorrect: Join({m, vr}) -> adds after last rowIt is correct: Join({m1, {vr}}) -> adds after last rowIt is incorrect: Join({vr, m}) -> adds before first rowIt is correct: Join({{vr}, m1}) -> adds before first rowIt is incorrect: Insert(vr, m, j) -> inserts at row jIt is correct: Insert({vr}, m1, j) -> inserts at row j]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302158
Thu, 01 Apr 2021 01:06:16 +0000<![CDATA[]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302160
Thu, 01 Apr 2021 01:27:18 +0000<![CDATA[The reason you consider some versions incorrect is because your idea of a "row vector" is to use a simple list while I used a list of lists (a matrix with a single row) which I think is more consistent when using matrix-vector-terminology (see the first paragraph of my original answer), i.e. I used {{1,2,3,4}} instead of your {1,2,3,4}. If you want to use a simple list for vr then of course you have to replace vr by {vr} in those versions (or just Join(vr) by vr in the cases where that is used).]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302182
Thu, 01 Apr 2021 09:56:09 +0000<![CDATA[Thank you very much for all your advice and recommendations. I don't use the Join and Insert commands much. Sometimes I use Zip and usually use Append and Transpose]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302202
Thu, 01 Apr 2021 12:28:27 +0000<![CDATA[Zip(Append(a, b), a, m, b, Join({vr})) -> adds after last columnZip(Join({{b}, a}), a, m, b, Join({vr})) -> adds before first columnZip(Insert(b, a, j), a, m, b, Join({vr})) -> inserts at column j ]]>
https://help.geogebra.org/topic/how-to-attach-a-column-vector-to-a-column-and-row-matrix#comment-302240
Thu, 01 Apr 2021 18:21:24 +0000