Skip to main content
1-Visitor
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

C:=stack(A,B)

Translate
jlee-21-VisitorAuthor
1-Visitor

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

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

How about this solution:

Pic_1.png

Translate
jlee-21-VisitorAuthor
1-Visitor

thank you for consideration.

Translate