I have three 1x56 structures - blocks (block1, block 2, block3). I need to create one big structure (experiment), which includes all the blocks, which is not a problem (exp = [block1 block2 block3]). The problem is how to shuffle the blocks within the experiment, without mixing the content of each block with other blocks' content.
For example:
block1(1).block = '1'
block1(2).block = '1'
block1(3).block = '1'
block2(1).block = '2'
block2(2).block = '2'
block2(3).block = '2'
block3(1).block = '3'
block3(2).block = '3'
block3(3).block = '3'
I want 111333222 or 333222111 or 222333111 and so on, but never 132123112 etc.
I am sorry it's not very clear, I'm quite new to MatLab. I'd really appreciate your ideas and help!