cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting several matrices from program

SOLVED
Newbie

Extracting several matrices from program

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Extracting several matrices from program

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 5

Re: Extracting several matrices from program

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.

Re: Extracting several matrices from program

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.

Re: Extracting several matrices from program

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.

Re: Extracting several matrices from program

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.

Re: Extracting several matrices from program

Thank you

It was exactly what I needed.