lag2 = [{'walk', 'water', 'warm', 'cheer', 'word', 'happy', 'whim', 'womb', 'wear', 'well'};
{'hello', 'here', 'hat', 'that', 'happy', 'hide', 'awesome', 'there', 'howl', 'harry'};
{'look', 'listen', 'lyer', 'hateful', 'lost', 'hatred', 'plot', 'player', 'plow', 'lay'};
{'goat', 'meat', 'hope', 'house', 'love', 'wall', 'down', 'up', 'sky', 'mount'};
{'go', 'golf', 'loser', 'gyrus', 'terrible', 'gallore', 'tug', 'thor', 'gear', 'leg'}];
So I have this cell array with 5 rows. I want to randomize the order of the rows so they appear differently. I also want to lock certain targets like the words: cheer, happy happy, awesome hateful, hatred hope, love loser, terrible. SO that they always have one word in between. How do I do that?
Aucun commentaire:
Enregistrer un commentaire