tadd first version of matlab watch script - 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 f1e0c6e141b76c56305155587973ee9f754a99ae
(DIR) parent 982f00e2b0310c64d936c510845917e80a19489c
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 17 Aug 2015 14:25:25 +0200
add first version of matlab watch script
Diffstat:
A matlab/file_scanner_mcmc_starter.m | 15 +++++++++++++++
A matlab/run.sh | 3 +++
2 files changed, 18 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
t@@ -0,0 +1,14 @@
+% folder of input files
+infolder = '~/src/cosmo/matlab';
+
+% infinite loop
+while 1
+
+ infile = 'testinput.txt';
+
+ if exist([infolder, '/', infile], 'file') == 2
+ disp('file exists')
+ break
+ end
+
+end
+\ No newline at end of file
(DIR) diff --git a/matlab/run.sh b/matlab/run.sh
t@@ -0,0 +1,3 @@
+#!/bin/bash
+/Applications/MATLAB_R2014b.app/bin/matlab -nodesktop -nosplash -nodisplay \
+ -nojvm -r "run('file_scanner_mcmc_starter.m')"