tbeep toggle - 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 65c493d4b680538f816e37872248496c4f96be9f
(DIR) parent fd62c81c908c57e1b1af3b34cf2f6295523b7711
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 26 Aug 2015 14:05:19 +0200
beep toggle
Diffstat:
M matlab/mcmc_inversion.m | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/matlab/mcmc_inversion.m b/matlab/mcmc_inversion.m
t@@ -12,6 +12,7 @@ function [] = mcmc_inversion(matlab_scripts_folder, debug, ...
%% mcmc_inversion.m
% function is called from `file_scanner_mcmc_starter.m`
+beeps = false;
%clear; close all;
format compact;
t@@ -227,12 +228,16 @@ for iwalk=1:fixed_stuff.Nwalkers
Ss{iwalk}=S;
% S.ms{iwalk}=ms
% S.lump_MetHass{iwalk}=lump_MetHas;
- sound(sin(1:0.5:500))
+ if beeps
+ sound(sin(1:0.5:500))
+ end
end
-% sound(0.5*sin(1:0.5:500));pause(0.3);sound(0.5*sin(1:0.75:750))
-% pause(0.6)
-% sound(0.5*sin(1:0.5:500));pause(0.3);sound(0.5*sin(1:0.75:750))
+if beeps
+ sound(0.5*sin(1:0.5:500));pause(0.3);sound(0.5*sin(1:0.75:750))
+ pause(0.6)
+ sound(0.5*sin(1:0.5:500));pause(0.3);sound(0.5*sin(1:0.75:750))
+end
save_file = ['Walks_',datestr(now,'yyyymmdd_HHMMSS')];
save(save_file,'Ss','save_file')