| tmatlab cannot index temporary strings - cosmo - front and backend for Markov-C… | |
| git clone git://src.adamsgaard.dk/cosmo | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 7e4f97c2a340225a0a2f37a769352ee85999acf6 | |
| parent 16e5c38702a42f599952f1ab3b5ba2bdbf4a4c82 | |
| Author: Anders Damsgaard <[email protected]> | |
| Date: Tue, 29 Sep 2015 12:07:53 +0200 | |
| matlab cannot index temporary strings | |
| Diffstat: | |
| M matlab/file_scanner_mcmc_starter.m | 3 ++- | |
| 1 file changed, 2 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_star… | |
| t@@ -57,7 +57,8 @@ while 1 | |
| % read full file name and path | |
| infile = strcat(infolder, '/', infiles(i).name); | |
| - id = strsplit(infile, '_')(2); | |
| + idstring = strsplit(infile, '_'); | |
| + id = idstring(2); | |
| diary(strcat(infolder, '/status_', id)); | |