tuse first field from 1x1 cell arrays - 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 2e4e8ff7dfee62c822eb2dfd2d6910fefa2c0a74
 (DIR) parent 2a3c0099b8b4a79530419cde6e421c08d2f46792
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Tue,  1 Dec 2015 14:02:34 +0100
       
       use first field from 1x1 cell arrays
       
       Diffstat:
         M matlab/generate_plots.m             |      21 ++++++++++-----------
       
       1 file changed, 10 insertions(+), 11 deletions(-)
       ---
 (DIR) diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
       t@@ -832,8 +832,7 @@ filename = [save_file, '-input.html'];
        disp('Saving html table of input values')
        
        % header
       -html = '\n';
       -html = [html, ...
       +html = ['\n' ...
            '<table class="highlight">\n'...
            '    <thead>\n'...
            '        <tr>\n'...
       t@@ -844,21 +843,21 @@ html = [html, ...
            '    <tbody>\n'...
            '        <tr>\n'...
            '            <td>Sample ID</td>\n'...
       -    '            <td>' sample_id '</td>\n'...
       +    '            <td>' sample_id{1} '</td>\n'...
            '        </tr>\n'...
            '            <td>Name</td>\n'...
       -    '            <td>' name '</td>\n'...
       +    '            <td>' name{1} '</td>\n'...
            '        </tr>\n'...
            '            <td>Email</td>\n'...
       -    '            <td>' email '</td>\n'...
       +    '            <td>' email{1} '</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
            '            <td>Latitude</td>\n'...
       -    '            <td>' lat '</td>\n'...
       +    '            <td>' lat{1} '</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
            '            <td>Longitude</td>\n'...
       -    '            <td>' long '</td>\n'...
       +    '            <td>' long{1} '</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
            '            <td><sup>10</sup>Be concentration</td>\n'...
       t@@ -949,7 +948,7 @@ html = [html, ...
            '        </tr>\n'...
            '        <tr>\n'...
            '            <td>Climate record</td>\n'...
       -    '            <td>' record '</td>\n'...
       +    '            <td>' record{1} '</td>\n'...
            '        </tr>\n'...
            '        <tr>\n'...
            '            <td>&delta;<sup>18</sup>O<sub>threshold</sub></td>\n'...
       t@@ -961,8 +960,8 @@ html = [html, ...
            '            <td>' num2str(nwalkers) '</td>\n'...
            '        </tr>\n'...
            '    </tbody>\n'...
       -    '</table>\n'...
       -    ];
       +    '</table>\n'];
       +keyboard
        fileID = fopen(filename,'w');
       -fprintf(fileID, char(html));
       +fprintf(fileID, html);
        fclose(fileID);