Keeping track of numbers randomly generated
1 回表示 (過去 30 日間)
古いコメントを表示
This is the beginning of a for loop that determines the time the 'Binding_tRNA' adds in a set of given circumstances.
I'd like to output a table that keeps track of the Binding_tRNA numbers generated and whether they are Cognate, Near_Cognate, or Non_Cognate
for k = 1:maxIterations
Binder = rand;
Low = Binder<=Weight_Range;
Binding_tRNA = Fluitt1{end-(sum(Low)-1),'tRNA_'}
Cognate = sum(Binding_tRNA == Cognate_tRNAs);
Near_Cognate = sum(Binding_tRNA ==Near_Cognate_tRNAs);
Non_Cognate = sum(Binding_tRNA == Non_Cognate_tRNAs);
A = zeros((Cog_Attempts+Near_Cog_Attempts+Non_Cog_Attempts),2)
Sorry, I know it's not pretty I'm very new to coding
2 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!