From 7ccd26a17eb025785361ddeff6af652ec8f59677 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 24 Jun 2014 12:10:59 +0200 Subject: [PATCH] dseries: remove strsplit as it was introduced in Matlab R2013a --- matlab/utilities/dseries/from.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/utilities/dseries/from.m b/matlab/utilities/dseries/from.m index 9351a02e3..a8ae4bef3 100644 --- a/matlab/utilities/dseries/from.m +++ b/matlab/utilities/dseries/from.m @@ -293,7 +293,7 @@ t2 = find(d2==tmp.dates); data = tmp.data; % Isolate the (potential) parameters in the expression to be evaluated -[~, TMP314] = strsplit(expression,'([0-9]*\.[0-9]*|\w*)','DelimiterType','RegularExpression','CollapseDelimiters',false); +TMP314 = regexp(expression, '([0-9]*\.[0-9]*|\w*)', 'match'); % Here I remove the numbers (TMP314 -> TMP314159). TMP3141 = regexp(TMP314,'(([0-9]*\.[0-9]*)|([0-9]*))','match'); TMP31415 = find(cellfun(@isempty,TMP3141));