function [ctype,cparams,cpercentage] = getVarCompression(cdfId,varNum)
%cdflib.getVarCompression Return variable compression information
%   [ctype,params,percent] = cdflib.getVarCompression(cdfId,varNum) 
%   returns the compression type, compression parameters, and compression
%   percentage of the variable specified by varNum in the CDF specified by 
%   cdfId.  
%   
%   This function corresponds to the CDF library C API routine 
%   CDFgetzVarCompression.  
%
%   Example:
%       cdfId = cdflib.open('example.cdf');
%       varNum = 0;
%       [ctype,cparms,cpercentage] = cdflib.getVarCompression(cdfId,varNum);
%       cdflib.close(cdfId);
%
%   Please read the file cdfcopyright.txt for more information.
% 
%   See also cdflib, cdflib.setCompression, cdflib.setVarCompression.

%   Copyright 2009-2022 The MathWorks, Inc.

[ctype,cparams,cpercentage] = matlab.internal.imagesci.cdflib('getVarCompression',cdfId,varNum);
