Skip to content

Commit

Permalink
make octavezmat work on matlab
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 8, 2023
1 parent ea4a4fd commit 3ff781f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: jsonlab
Version: 2.9.8
Date: 2022-29-04
Date: 2023-11-11
Title: A JSON/UBJSON/MessagePack encoder/decoder for MATLAB/Octave
Author: Qianqian Fang <[email protected]>
Maintainer: Qianqian Fang <[email protected]>
Expand Down
4 changes: 4 additions & 0 deletions INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ JSON Mmap
Compression and Decompression
base64decode
base64encode
blosc2decode
blosc2encode
gzipdecode
gzipencode
lz4decode
Expand All @@ -37,6 +39,8 @@ Compression and Decompression
lzmaencode
zlibdecode
zlibencode
zstddecode
zstdencode
octavezmat
Helper Functions
decodevarname
Expand Down
6 changes: 5 additions & 1 deletion octavezmat.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
if(~iscompress)
if(strcmp(zipmethod, 'zlib'))
outputfile=unzip(tmpfile, tempdir);
outputfile=[tempdir filesep outputfile{1}];
if((exist('OCTAVE_VERSION','builtin')~=0))
outputfile=[tempdir filesep outputfile{1}];
else
outputfile = outputfile{1};
end
elseif(strcmp(zipmethod, 'gzip'))
gunzip(tmpfile);
end
Expand Down

0 comments on commit 3ff781f

Please sign in to comment.