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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Problem with merging vectors

mzarrabi
12-Amethyst

Problem with merging vectors

Hi all, I have several column vectors that I need them to be merged into a one big column vector. The problem is that as they have several dimensions, Mathcad add zeros to match their dimension before merging them. The zeros make errors in calculations. I wonder how I can avoid these zeros? Many thanks.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:mzarrabi)

How about this:

bild.PNG

 

View solution in original post

5 REPLIES 5

try:

 

stack(y1,y2,y3)

 

Thank you for your response, but I want to use it in a loop in a way that regardless of the number of vectors (y), the function can automatically do that. For example, if there are 10 different vectors (y), there would be no need to change the function to work. I hope you find my explanation clear.   Best.

Werner_E
25-Diamond I
(To:mzarrabi)

How about this:

bild.PNG

 

mzarrabi
12-Amethyst
(To:Werner_E)

perfect, that's exactly what I was looking for. Thank you a lot.

And this other?

stack.gif

Best regards.

 

Alvaro.

Announcements

Top Tags