You can use wcompress() and supply the optional 'comprat' parameter as an input argument.
That is a valid input argument for the so-called coefficient thresholding methods:
'lvl_mmc'
'gbl_mmc_f'
'gbl_mmc_h'
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!