MATLAB: Combine table variables and assign head-variable name

combineconcatenateMATLABMATLAB and Simulink Student Suitetablesvariables

Hi
I'm trying to concatenate tables together. I have two variables that I combine together in multiple combinations, and each combination can have n solutions. For testing purposes I've kept it short and simple. Right now I have 5 combinations each with 3 solutions.
Using MS Paint magic I've edited the table to look like what I want
Unavngivet.png
I'm pretty sure I've seen a way to do this, but I can't find the page any longer.
Don't worry about 2&3 and 4&5 being identical.
Any help would be appriciated.

Best Answer