From fa26ab10e052ac9c0709181e6a462885afc26401 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Tue, 17 Oct 2017 09:13:53 +0200 Subject: [PATCH] Make isfile.m command work with Matlab versions before 9.1 --- matlab/missing/isfile/isfile.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/missing/isfile/isfile.m b/matlab/missing/isfile/isfile.m index 5676e7633..85347fa8e 100644 --- a/matlab/missing/isfile/isfile.m +++ b/matlab/missing/isfile/isfile.m @@ -49,7 +49,7 @@ cellofstringflag = false; n = 1; a = false; -if ~isoctave() && isstring(b) && length(b)>1 && isvector(b) +if ~isoctave() && ~matlab_ver_less_than('9.1') && isstring(b) && length(b)>1 && isvector(b) n = length(b); stringarrayflag = true; a = false(size(b));