How to random a chart?
이전 댓글 표시
I am trying to use matlab code to random a word chart. I want to random one line of the chart, not a single word. But I've checked the function like random (line 1: line 15), didn't find an appropiate code. Anyone could help on this? thanks.
댓글 수: 2
Mohammad Sami
2020년 7월 15일
Would you be able to clarify your questions ? Perhaps you can give an example of what you are trying to do.
Dorris Yan
2020년 7월 15일
답변 (1개)
Use random permutations.
Apply this example to your data.
words = ["A" "B" "C" "D" "E" "F" "G" "H"];
randIndex = randperm(numel(words));
words_randomized = words(randIndex);
댓글 수: 6
Dorris Yan
2020년 7월 20일
Adam Danz
2020년 7월 20일
No, this is just an example of how to use randperm. You can apply this method to your data.
I don't understand how you'd like to randomize your table. If you can explain it again, I could help you apply this method to your data.
Dorris Yan
2020년 7월 21일
Dorris Yan
2020년 7월 22일
Adam Danz
2020년 7월 22일
It's been a dozen or so years since I've set up an e-prime experiment. I've used cpp to set up and control experiments since there. So, if you're looking for help with e-prime you'll likely need to look elsewhere.
If you're trying to set up the conditions in Matlab, I can help you there but first you'll need to clearly define the specific problem you're tying to solve. For example, I have these variables [...] and am trying to do this specific action with the variables [...].
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
