Commit c48f7376 authored by Marco Ratto's avatar Marco Ratto
Browse files

make header names compatible with earlier versions of MATLAB (e.g. it would...

make header names compatible with earlier versions of MATLAB (e.g. it would crash with MATLAB 2017b)
parent 85e35b16
......@@ -35,14 +35,14 @@ end
xls_filename = options_.occbin.write_regimes.filename;
if isfield(regime_history,'regime')
Header = {'time', 'regime sequence', 'starting period of regime'};
Header = {'time', 'regime_sequence', 'starting_period_of_regime'};
for tp=1:length(T)
xlsmat{tp,1}=T(tp);
xlsmat{tp,2}=int2str(regime_history(tp).regime);
xlsmat{tp,3}=int2str(regime_history(tp).regimestart);
end
else
Header = {'time', 'regime sequence 1', 'starting period of regime 1', 'regime sequence 2', 'starting period of regime 2'};
Header = {'time', 'regime_sequence_1', 'starting_period_of_regime_1', 'regime_sequence_2', 'starting_period_of_regime_2'};
for tp=1:length(T)
xlsmat{tp,1}=T(tp);
xlsmat{tp,2}=int2str(regime_history(tp).regime1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment