Hi Paul,
I'm making good progress but stuck on efficiently extracting time series outputs from each simulation. Can you provide an example of how to generate a multi-column CSV using the new LK script?
Here's what I have so far:
// Get time series output
output = [
get('dc_gross'),
get('dc_net'),
get('ac_gross'),
get('ac_net')
];
// Write time series output
csvwrite(cases + '_' + locs[j], output);
The downside is that (a) there are no headers, and (b) the outputs are transposed from the usual layout (timestamps are by column but should be by row).
EDIT: Never mind! It was as simple as switching to a table structure...
// Get time series output
output = {
'dc_gross' = get('dc_gross'),
'dc_net' = get('dc_net'),
'ac_gross' = get('ac_gross'),
'ac_net' = get('ac_net')
};
// Write time series output
csvwrite(cases + '_' + locs[j], output);
Output looks like...
dc_gross,dc_net,ac_gross,ac_net
0,0,-0.0012,-0.001188
0,0,-0.0012,-0.001188
...