The attached function 'mixarray.m' will combine two one dimensional arrays and randomize the order of their elements. The basic structure is as follows:
1. Combine the two arrays into one.
2. Create a random list of indices.
3. Assign the original data into a new array using the random list of indices.
A sample of how you could use this function follows:
>> A=[815 2 55];
>> B=[545 1 8];
>> C=mixarrays(A,B)
C =
Best Answer