How to concatenate vectors of 10x2 and 11x1 in size?

1 view (last 30 days)
Hi,
I'm currently working on a project, where the original data consists of a vector that is 10x2, and another vector that is 11x1 in size. I'm now wondering if there is a "realistic" way to concatenate these two vectors (for example, insert the data from one vector from one position, insert the data from the second vector from another position, then once it has to be used, define which position we want to work "from"? If that makes any sense?) - Or if the only way to get it to work without doing a huge work-around would be to hold them in two different variables?
I realise this might be a bit messy as far as the explanation goes, so feel free to let me know if anything needs further explanation!
Thanks in advance.
  5 Comments
Johannes Sundqvist
Johannes Sundqvist on 6 Feb 2020
I've thought about the issue, looked at what you suggested and have been experimenting around a little bit (though not with much success), but I'm starting to realise a lot more than I initially thought will probably have to be changed ("down the line") if these vectors are concatenated, and as such I might put the whole thing on ice for right now. Either way, it's not like you haven't helped/made me learn new things, so thanks a bunch!

Sign in to comment.

Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!