Skip to content

Commit 3ff781f

Browse files
committed
make octavezmat work on matlab
1 parent ea4a4fd commit 3ff781f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: jsonlab
22
Version: 2.9.8
3-
Date: 2022-29-04
3+
Date: 2023-11-11
44
Title: A JSON/UBJSON/MessagePack encoder/decoder for MATLAB/Octave
55
Author: Qianqian Fang <fangqq@gmail.com>
66
Maintainer: Qianqian Fang <fangqq@gmail.com>

INDEX

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ JSON Mmap
2525
Compression and Decompression
2626
base64decode
2727
base64encode
28+
blosc2decode
29+
blosc2encode
2830
gzipdecode
2931
gzipencode
3032
lz4decode
@@ -37,6 +39,8 @@ Compression and Decompression
3739
lzmaencode
3840
zlibdecode
3941
zlibencode
42+
zstddecode
43+
zstdencode
4044
octavezmat
4145
Helper Functions
4246
decodevarname

octavezmat.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@
117117
if(~iscompress)
118118
if(strcmp(zipmethod, 'zlib'))
119119
outputfile=unzip(tmpfile, tempdir);
120-
outputfile=[tempdir filesep outputfile{1}];
120+
if((exist('OCTAVE_VERSION','builtin')~=0))
121+
outputfile=[tempdir filesep outputfile{1}];
122+
else
123+
outputfile = outputfile{1};
124+
end
121125
elseif(strcmp(zipmethod, 'gzip'))
122126
gunzip(tmpfile);
123127
end

0 commit comments

Comments
 (0)