Hi, I have 3 array with different number of cells and a matrix of 1 row and 3 columns composed by the arrays.
ACTIVITY_WAKE = {'awake_in_bed','out_of_bed','out_bedroom'};ACTIVITY_MORNING_TOILET = {'enter_toilet','sit_WC','wash','exit_toilet'};ACTIVITY_BREAKFAST = {'prepare_breakfast','have_breakfast','wash_dishes'};WAKE_UP = [ACTIVITY_WAKE ACTIVITY_MORNING_TOILET ACTIVITY_BREAKFAST];
I would like to generate WAKE_UP with random order, but when I use randperm command I have permutation of the element in single array, I only need to permute the array, like:
WAKE_UP = [ACTIVITY_WAKE ACTIVITY_BREAKFAST ACTIVITY_MORNING_TOILET] orWAKE_UP = [ACTIVITY_MORNING_TOILET ACTIVITY_WAKE ACTIVITY_BREAKFAST ]
Best Answer