I am trying to use arrcat to concatonate different size matrices.
Does anyone know how to easily make the following code work (without the comment
on
controlPoints_all2)? I would expect the result to be a [9][3] size matrix.
However, I get a
compliation error saying the matrices have to have the same dimensions.
Obviously they
don’t…but the pertinent dimensions are the same. Shouldn’t that be enough?.
Main = {
AnyMatrix controlPoints_all = {
{1,2,3},
{3,4,5},
{6,7,8},
{9,10,11}};
AnyMatrix controlPoints_allb = {
{1,2,3},
{3,4,5},
{6,7,8},
{9,10,11},
{12,13,14}
};
AnyMatrix controlPoints_allc =
arrcat(controlPoints_all,controlPoints_all);
AnyMatrix controlPoints_alld =
arrcat(controlPoints_allb,controlPoints_allb);
//WHY doesn't this produce a [9][3] matrix??
//AnyMatrix controlPoints_all2 =
arrcat(controlPoints_all,controlPoints_allb);
}; // Main
Thank you in advance.
-David