From 6406bf97d4f13fca5fd48ef2241ba668803ca29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Tue, 11 Feb 2020 19:08:37 +0100 Subject: [PATCH] Fixed Windows vs Linux path separator issue. --- matlab/aggregate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/aggregate.m b/matlab/aggregate.m index 768139292..e64b70fbf 100644 --- a/matlab/aggregate.m +++ b/matlab/aggregate.m @@ -288,6 +288,7 @@ function [v, t] = getvarandtag(str) end function blkname = getblockname(str, ROOT_FOLDER) + str = strrep(str, '/', filesep()); str = strrep(str, [ROOT_FOLDER filesep() 'blocks' filesep()], ''); idx = strfind(str, filesep()); blkname = str(1:idx(1)-1); \ No newline at end of file