Randomize a vector with letters making a N back test
Ältere Kommentare anzeigen
Hi,
I wish to create a random letter vector that has 150 element with only the letters from A to J, which i have done here:
s='A':'J'; % Generate the Letters from A to J
str=s(randi(numel(s),150,1))';
But i wish that some of the every 3rd element after 1 element is identical. For eksample
[A G J B G H D I H C]
Thank u
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!