Exchange random variable name between several TLC files
Ältere Kommentare anzeigen
Hi,
I would like to dynamically generate a random variable name in one of my TLC files and use this in several other TLC files.
How would I go about:
1. Generating a random variable name?
2. Passing the generated variable name to other TLC files?
Many thanks in advance for your time and help!
Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 19 Okt. 2011
I don't know anything about TLC files (or even what they are). But this little algorithm will generate a random file name (of length 10):
alphabet = 'abcdefghijklmnopqrstuvwxyz';
index = randi(26,1,10);
filename = alphabet(index);
1 Kommentar
Macko
am 20 Okt. 2011
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!