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

Problem with merging vectors

SOLVED
Highlighted
Garnet

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Problem with merging vectors

How about this:

bild.PNG

 

View solution in original post

5 REPLIES 5

Re: Problem with merging vectors

try:

 

stack(y1,y2,y3)

 

Re: Problem with merging vectors

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.

Re: Problem with merging vectors

How about this:

bild.PNG

 

View solution in original post

Re: Problem with merging vectors

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

Re: Problem with merging vectors

And this other?

stack.gif

Best regards.

 

Alvaro.

Announcements