Special case of join
Show older comments
hi, if i have a 2 variables a,b which contains lets say IDs, which function would help do this : a= 1 2 3 b= 4 5 i want to get a variable that contains :
answer= 1 4,1 5,2 4,2 5,3 4,3 5
meaning all the combinations of the values of the two variables ? I tried doing it with two loops but it takes a lot of time (hours) because i have big files, i just started using matlab ,so it may seem a simple question , but i have spent a lot of time trying to do so .
Accepted Answer
More Answers (0)
Categories
Find more on Tables 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!