tgenerate one column per walker - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 117474b92f89f3a7414160b7af279c3a2eed8324
 (DIR) parent 6f5199c5f7e796f4fbece07ee5ea20ff6714caf1
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 18 Nov 2015 18:08:23 +0100
       
       generate one column per walker
       
       Diffstat:
         M matlab/generate_plots.m             |      49 +++++++++++++++++++------------
       
       1 file changed, 30 insertions(+), 19 deletions(-)
       ---
 (DIR) diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
       t@@ -679,34 +679,45 @@ html = [...
            '<table>\n'...
            '    <thead>\n'...
            '        <tr>\n'...
       -    '            <th data-field="param">Parameter</th>\n'...
       -    '            <th data-field="w1">Walker 1</th>\n'...
       -    '            <th data-field="w2">Walker 2</th>\n'...
       -    '            <th data-field="w3">Walker 3</th>\n'...
       +    '            <th data-field="param">Parameter</th>\n'];
       +
       +for i=1:Nwalkers
       +    html = [html, ...
       +        '            <th data-field="w1">Walker ', num2str(i), '</th>\n'];
       +end
       +
       +html = [html, ...
            '            <th data-field="avg">Average</th>\n'...
            '        </tr>\n'...
            '    <thead>\n'...
            '    <tbody>\n'...
            '        <tr>\n'...
       -    '            <td>25%%</td>\n'...
       -    '            <td>w1,25%%</td>\n'...
       -    '            <td>w2,25%%</td>\n'...
       -    '            <td>w3,25%%</td>\n'...
       -    '            <td>wavg,25%%</td>\n'...
       +    '            <td>25%%</td>\n'];
       +
       +for i=1:Nwalkers
       +    html = [html, '            <td>w', num2str(i), ',25%%</td>\n'];
       +end
       +    
       +html = [html, '            <td>wavg,25%%</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
       -    '            <td>&epsilon;<sub>int</sup>50%%</td>\n'...
       -    '            <td>w1,50%%</td>\n'...
       -    '            <td>w2,50%%</td>\n'...
       -    '            <td>w3,50%%</td>\n'...
       -    '            <td>wavg,50%%</td>\n'...
       +    '            <td>&epsilon;<sub>int</sup> 50%%</td>\n'];
       +
       +for i=1:Nwalkers
       +    html = [html, '            <td>w', num2str(i), ',50%%</td>\n'];
       +end
       +
       +
       +html = [html, '            <td>wavg,50%%</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
       -    '            <td>75%%</td>\n'...
       -    '            <td>w1,75%%</td>\n'...
       -    '            <td>w2,75%%</td>\n'...
       -    '            <td>w3,75%%</td>\n'...
       -    '            <td>wavg,75%%</td>\n'...
       +    '            <td>75%%</td>\n'];
       +
       +for i=1:Nwalkers
       +    html = [html, '            <td>w', num2str(i), ',75%%</td>\n'];
       +end
       +
       +html = [html, '            <td>wavg,75%%</td>\n'...
            '        </tr>\n'...
            '    </tbody>\n'...
            '</table>\n'...