Skip to content

Commit 00af690

Browse files
committed
[feat] use native matlab.net.base64decode in octave if zmat is not installed
1 parent 6f09969 commit 00af690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

base64decode.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
output = zmat(varargin{1}, 0, 'base64');
3535
return
3636
elseif (isoctavemesh)
37-
error('You must install the ZMat toolbox (http://github.com/NeuroJSON/zmat) to use this function in Octave');
37+
try
38+
output = matlab.net.base64decode(varargin{1});
39+
catch
40+
error('You must install the ZMat toolbox (http://github.com/NeuroJSON/zmat) to use this function in Octave');
41+
end
3842
end
3943

4044
error(javachk('jvm'));

0 commit comments

Comments
 (0)