tprescribe number of digits - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
git clone git://src.adamsgaard.dk/cosmo
Log
Files
Refs
README
LICENSE
---
commit 57c74adbb7a7835e79ede1a3053ddf360b832f0d
parent 9a970a4bf92f6f726f35ae9f463cdd4ecf051b98
Author: Anders Damsgaard 
Date:   Mon,  9 Nov 2015 15:22:58 +0100

prescribe number of digits

Diffstat:
  M matlab/generate_plots.m             |       8 ++++----

1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
t@@ -355,17 +355,17 @@ for i1 = 1:M % for each model parameter
     
     if i1 == 1
         xlabel(['Interglacial erosion rate [mm/yr], median = ' ...
-            num2str(med) ' mm/yr'])
+            num2str(med, 4) ' mm/yr'])
         text(0.02,0.98,'a', 'Units', ...
             'Normalized', 'VerticalAlignment', 'Top')
     elseif i1 == 2
         xlabel(['Glacial erosion rate [mm/yr], median = ' ...
-            num2str(med) ' mm/yr'])
+            num2str(med, 4) ' mm/yr'])
         text(0.02,0.98,'b', 'Units', ...
             'Normalized', 'VerticalAlignment', 'Top')
     elseif i1 == 3
         xlabel(['Timing of last deglaciation [yr], median = ' ...
-            num2str(med) ' yr'])
+            num2str(med, 4) ' yr'])
         text(0.02,0.98,'c', 'Units', ...
             'Normalized', 'VerticalAlignment', 'Top')
     elseif i1 == 4
t@@ -373,7 +373,7 @@ for i1 = 1:M % for each model parameter
             %', median = ' num2str(med) ' $^o/_{oo}$'], ...
             %'Interpreter', 'LaTeX')
         xlabel(['\delta^{18}O_{threshold} [' char(8240) '], median = '...
-            num2str(med) ' ' char(8240)])
+            num2str(med, 4) ' ' char(8240)])
         text(0.02,0.98,'d','Units', ...
             'Normalized', 'VerticalAlignment', 'Top')
     else