フィルターのクリア

Ceil function - please help

3 ビュー (過去 30 日間)
Barbara Fiorani
Barbara Fiorani 2020 年 10 月 22 日
回答済み: Walter Roberson 2020 年 10 月 22 日
Can i use Test_Order = ceil(Trial_Order./Trials_Per_Test); to generate random ordering of possible conditions in a stroop test?
Fundamentaly, what i mean is : can i use that function to set up test with words intead of number?
I am asking as I know ceil function round up number, hence i am not sure i can use it for my specific test.

採用された回答

Walter Roberson
Walter Roberson 2020 年 10 月 22 日
TrialOrder = randperm(Number_of_elements, Number_to_select)
Words(TrialOrder)
This applies provided that each element is to be selected at most once (selection without replacement). If you are trying to randomize the order of presentation of words in which each word is to occur exactly the same number of times over the whole sequence, then you would use different code that would depend on the rules about how soon the same word can reappear.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage display and manipulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by