You can do that with a cell array (<http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F>) or if you put something like nan in the "missing" columns of row 3. So fill out array 1 and 2 with nans, then stitch together
f_out = [f3, f1', f2'];
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!