# doc-cache created by Octave 4.4.1
# name: cache
# type: cell
# rows: 3
# columns: 1
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
zmat


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2204

 output=zmat(input)
    or
 [output, info]=zmat(input, iscompress, method)
 output=zmat(input, info)

 A portable data compression/decompression toolbox for MATLAB/GNU Octave
 
 author: Qianqian Fang <q.fang at neu.edu>
 initial version created on 04/30/2019

 input:
      input: a char, non-complex numeric or logical vector or array
      iscompress: (optional) if iscompress is 1, zmat compresses/encodes the input, 
             if 0, it decompresses/decodes the input. Default value is 1.
             if one defines iscompress as the info struct (2nd output of
             zmat) during encoding, zmat will perform a
             decoding/decompression operation and recover the original
             input using the info stored in the info structure.
      method: (optional) compression method, currently, zmat supports the below methods
             'zlib': zlib/zip based data compression (default)
             'gzip': gzip formatted data compression
             'lzip': lzip formatted data compression
             'lzma': lzma formatted data compression
             'lz4':  lz4 formatted data compression
             'lz4hc':lz4hc (LZ4 with high-compression ratio) formatted data compression
             'base64': encode or decode use base64 format

 output:
      output: a uint8 row vector, storing the compressed or decompressed data; 
             empty when an error is encountered
      info: (optional) a struct storing additional info regarding the input data, may have
            'type': the class of the input array
            'size': the dimensions of the input array
            'byte': the number of bytes per element in the input array
            'method': a copy of the 3rd input indicating the encoding method
            'status': the zlib/lzma/lz4 compression/decompression function return value, 
                    including potential error codes; see documentation of the respective 
                    libraries for details

 example:

   [ss, info]=zmat(eye(5))
   orig=zmat(ss,0)
   orig=zmat(ss,info)
   ss=char(zmat('zmat test',1,'base64'))
   orig=char(zmat(ss,0,'base64'))

 -- this function is part of the ZMAT toolbox (http://github.com/fangq/zmat)




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80

 output=zmat(input)
    or
 [output, info]=zmat(input, iscompress, method)
 out





