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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

augment a group of matrices

rcallisaya
11-Garnet

augment a group of matrices

Hello, I would like to know how to program the union of four or more matrices, as shown in the 

attadhed sheet developed in mathcad 15. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

In case that for some reason you don't want to use augment (why?) and are looking for a replacement, you may use something like this:

Werner_E_0-1607571849542.png

 

View solution in original post

3 REPLIES 3

I'm not sure what you mean by "to program" in this context.

What's wrong with the use of "augment"?

 

But if your question is how to write a function with a variable number of arguments, then the answer is - not at all, because this is unfortunately not supported by Mathcad for user-defined functions. A workaround solution is to pack all arguments into a vector and pass it as a function argument. Here's an example:

Werner_E_0-1607571370129.png

 

In case that for some reason you don't want to use augment (why?) and are looking for a replacement, you may use something like this:

Werner_E_0-1607571849542.png

 

Thank you very much, I really appreciate the support

 

Top Tags