From a84c4da373d660f65a8a0b89de8bf13c0034fe18 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@jrc.ec.europa.eu> Date: Fri, 12 Feb 2010 19:31:05 +0100 Subject: [PATCH] bug fix for use with octave for windows (filesep in place of '/') (cherry picked from commit 0d2448c375247f96a03f68ae4364e2b816fd24ef) --- matlab/ReshapeMatFiles.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/matlab/ReshapeMatFiles.m b/matlab/ReshapeMatFiles.m index 4ecbbaeb66..950958e02c 100644 --- a/matlab/ReshapeMatFiles.m +++ b/matlab/ReshapeMatFiles.m @@ -45,20 +45,20 @@ function ReshapeMatFiles(type, type2) global M_ options_ if nargin==1, - MhDirectoryName = [ CheckPath('metropolis') '/' ]; + MhDirectoryName = [ CheckPath('metropolis') filesep ]; else if strcmpi(type2,'posterior') - MhDirectoryName = [CheckPath('metropolis') '/' ]; + MhDirectoryName = [CheckPath('metropolis') filesep ]; elseif strcmpi(type2,'gsa') if options_.opt_gsa.morris==1, - MhDirectoryName = [CheckPath('GSA\SCREEN') '/' ]; + MhDirectoryName = [CheckPath('GSA\SCREEN') filesep ]; elseif options_.opt_gsa.morris==2, - MhDirectoryName = [CheckPath('GSA\IDENTIF') '/' ]; + MhDirectoryName = [CheckPath('GSA\IDENTIF') filesep ]; else - MhDirectoryName = [CheckPath('GSA') '/' ]; + MhDirectoryName = [CheckPath('GSA') filesep ]; end else - MhDirectoryName = [CheckPath('prior') '/' ]; + MhDirectoryName = [CheckPath('prior') filesep ]; end end switch type -- GitLab