Skip to main content
1-Visitor
Dec 20, 2014 9:27 AM UTC
Question

I want to combine different 2 vecctors

34.PNG

Hello.

I had a question.

I want to make "C" by plusing A and B

It means that "B" from 2 rows(5) should add under 4 rows in "A" automatically.

Could you help me?

7 replies

Werner_E
25-Diamond I
Dec 20, 2014 10:10 AM UTC

C:=stack(A,B)

Translate
jlee-21-VisitorAuthor
1-Visitor
Dec 20, 2014 10:34 AM UTC

Thank you for helping.

But I want to get result's values without duplication.

I got same value "4"

Translate
Werner_E
25-Diamond I
Dec 20, 2014 11:19 AM UTC

jinsuk Lee wrote:

Thank you for helping.

But I want to get result's values without duplication.

And sorted, too?

There will be no specific command in Mathcad to do so and it will require a samll program. You will have to specify your needs in more detail. As it looks to me now its not a matter of combining two vectors but rather a problem of removing duplicates from a single vector. I think you will have to provide more different examples to make it clear.

E.g. what about A=(3,6,3,2) B=(7,1,7,3) What result do you expect? C=(1,2,3,6,7) or C=(3,6,2,7,1) or what else?

Translate
24-Ruby IV
Dec 20, 2014 11:26 PM UTC

How about this solution:

Pic_1.png

Translate
jlee-21-VisitorAuthor
1-Visitor
Dec 21, 2014 7:28 AM UTC

thank you for consideration.

Translate