Skip to main content
1-Visitor
May 3, 2013
Solved

Extracting several matrices from program

  • May 3, 2013
  • 5 replies
  • 2038 views

I wrote a program in the mathcad for the first time , the program creates a few matrixes and vectors . which are unfortunately not equal in size , therefore can't be augmented .

is there any way i can extract them all out in seperate matrixes from the program?

Best answer by Fred_Kohlhepp

Morteza Adinehnia wrote:

Thank you for your answer

I'm hoping to be able to extract Nnucl , r, time, C, sat, Mconsumed and Mstart all at the same time.

You can have a matrix of matrices, not all the same size.

5 replies

Werner_E
25-Diamond I
May 6, 2013

Yes, but you would have to attach your worksheet and specify moredetailed what you want to achiev.

You might want to lookup the command "submatrix()" in the help.

MortezaA1-VisitorAuthor
1-Visitor
May 6, 2013

Thank you for your answer

I'm hoping to be able to extract Nnucl , r, time, C, sat, Mconsumed and Mstart all at the same time.

Werner_E
25-Diamond I
May 6, 2013

Look if the attached would help. The program now returns a nested vector consisting of all the variables you demanded. I assigned it a vector with appropriate variables as this seems more natural for me, but you may still assign it a single variable U and can then extract the single components using the vector index, e.g. r:=U[1, etc.