Skip to main content
12-Amethyst
March 5, 2014
Solved

Converting a matrix m x m in a column m*m x 1

  • March 5, 2014
  • 1 reply
  • 3868 views

To all,

I need to transform a matrix with m rows and m columns in a column matrix where the matrix elements will be formed by the columns of the m x m matrix but in succesive order.

for example if the original matrix is 2 x 2, the new matrix will have 4 rows and 1 column with the two original columns in the 1 column of the new matrix.

Thank you in advance,

Rogelio

Best answer by Werner_E

Rogelio de las Casas wrote:

it did not work in my case.

Which method did not work?

But anyway, both should work, as a matrix of the dimensions you mention don't should be a problem for Mathcad in no way.

Mathcad give just the following sintaxis:

(the V at the end is just volts

Unfortunately we don't see anything. You can't paste a picture diretcly from the clipboard (wish we could) but you have to save it and the insert it using the appropriate button in this windows.

Even better is to attach you worksheet!! (Chose "advanced editor" at the upper right to do so).

We don't even know which version of Mathcad you are using.

One idea: If you play around with large matrices (but 250x 250 isn't that large) you may eventually end up with a not enough memory error because Mathcad has avery bad memory management and memory taken up by matrices is never freed. If this happens you have to close the program and restart it again.

Or are you using inline evaluations like V:=unravel(M)=..., assigning and evaluating in the same regions. There is kind of a bug and you may get an otherwise undefined "eng_exception" or "mpl_exception". Solution is to assign and evaluate/display in two separate regions (V:=unravel(M) and V=...).

1 reply

25-Diamond I
March 5, 2014

Thats pretty easy and I think the method goes back to a collection of utilities of Tom Gutman.

unravel.png

12-Amethyst
March 5, 2014

thank you very much, i will try and let you know.

thanks,

Rogelio

19-Tanzanite
March 5, 2014

Here's an alternative approach.

M2Vec.PNG

Alan