Skip to main content
1-Visitor
December 20, 2014
Question

I want to combine different 2 vecctors

  • December 20, 2014
  • 2 replies
  • 2700 views

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?

2 replies

25-Diamond I
December 20, 2014

C:=stack(A,B)

jlee-21-VisitorAuthor
1-Visitor
December 20, 2014

Thank you for helping.

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

I got same value "4"

25-Diamond I
December 20, 2014

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?

24-Ruby III
December 20, 2014

How about this solution:

Pic_1.png

jlee-21-VisitorAuthor
1-Visitor
December 21, 2014

thank you for consideration.