changeset 40:4b009d774e1a

Fix crash
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 23 Jun 2025 15:25:19 +0200
parents 3156ace843f5
children 17ac3ce49b55
files +mpm/MatlabPathManager.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/+mpm/MatlabPathManager.m	Mon Jan 13 11:27:35 2025 +0100
+++ b/+mpm/MatlabPathManager.m	Mon Jun 23 15:25:19 2025 +0200
@@ -57,7 +57,7 @@
 
             mpath = obj.matlabPath();
             [ok, I] = ismember(s_unordered, mpath);
-            s = mpath(sort(I));
+            s = mpath(sort(I(ok)));
         end
 
         function ps = matlabPath(obj)