Matlab Code for matrix interleaver in IDMA

Hello Everyone

I actually need of a matlab code which is using matrix interleaver in idma. i want to check its BER vs SNR performance. And i also want to simulate my interleaver in place of matrix interleaver. So kindly tell me what are the parameters on which interleaver performance should be measured(for ex- its block length)?