Skip to main content
12-Amethyst
December 10, 2020
Solved

augment a group of matrices

  • December 10, 2020
  • 1 reply
  • 1884 views

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

Best answer by Werner_E

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

 

1 reply

25-Diamond I
December 10, 2020

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

 

Werner_E25-Diamond IAnswer
25-Diamond I
December 10, 2020

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

 

12-Amethyst
December 10, 2020
Thank you very much, I really appreciate the support