I want to encode the connectivity matrix and save the connectivity matrix back in the TF variable following the tutorial. But I find the 'process_compress_sym' function don't compress the matrix correctly. The dimension and number of the variable is not compressed correctly. Can you please give me some instructions about this problem?
my test code is as below:

R = bst_memory('GetConnectMatrix', NDplvt);
test = process_compress_sym('Compress',R( : ) );

'test' is not equal to the initial 'NDplvt.TF' data.

I try to use the tutorial code 'R = bst_memory('GetConnectMatrix', TfMat)',but i find the returned variable 'R' is a [Na x Nb x Ntime x 1] matrix instead of [Na x Nb x Ntime x Nfreqs (4 freqs in current TfMat)] one. The TfMat is uploaded.