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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Problem with merging vectors

mzarrabi
13-Aquamarine

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
13-Aquamarine
(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