From your question, it's quite unclear, what you exactly you wish to cross correlate. If you could extend a bit more on the problem, we might be able to help you better.
I have a DS-CDMA system (the number of users is K) whose spectrum is spread by chaotic sequences, I must calculate all possible cross-correlations between users (exemple: user 1 with other (k-1) users, and then the 2 nd user with the other (k-1) users, and so on)
I'm still not quite sure that I understand the problem...But let's start with the simple anwser:
If you've got a value for each user for a particular condition, then you can correlate that value to the values of other users during the same condition.
If the chaotic system has a time-lag for different conditions, then you need to define a design-matrix with all the values per condition per time-lag and cross-correlate that per user. This can be done with software packages like matlab, idl, python etc etc.
be more precise please, do you want to compute the interferecne to added to your BER equation or to compute the correlation value per lag if it is the first point that you are looking for so take a look on my journbal papers but if you are looking to compute the function take a look to the papers of Pr Lawrence and Pr Khoda
I want to calculate the values of the cross-correlation function between different users in a DS-CDMA system with K users, as these values changed from a pair to anthor in the case of chaotic sequences. with K users we must calculated (1/2 * K (K-1)) cross-correlation, here's the problem I do not know how to do the calculation with MATLAB (how to introduce (1/2 * K (K-1)) in the program)