Matlab code for stacking data next to each other

Hi - I have a very basic question, more on Matlab programming. Once I complete running my .mod file in Dynare and load the generated data series (like impulse responses, etc.) in the Workspace, I find that Matlab does not allow me to naturally select several data series and view them together.

Instead I have to individually select data series, and eventually copy the data to an excel file, where I can stack them beside each other, in a meaningful format. Having to do this every time I run the code, makes this a very time consuming exercise.

Is anyone aware of a Matlab code that allows me to select multiple data series from the Workspace and generates a table where the data is placed next to each other?

Grateful for any help with this issue.

Thanks,

A

To write IRFs and simulated series to Excel use something along the lines of

irf_names=fieldnames(oo_.irfs)
IRF_mat=cell2mat(struct2cell(oo_.irfs))
xlswrite('Dynare_results.xlsx',irf_names,'IRFS','A1')
xlswrite('Dynare_results.xlsx',IRF_mat,'IRFS','B1')
xlswrite('Dynare_results.xlsx',M_.endo_names,'Simulated','A1')
xlswrite('Dynare_results.xlsx',oo_.endo_simul,'Simulated','B1')

Thanks a ton Johannes!

A