Exchange random variable name between several TLC files
Show older comments
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!
Accepted Answer
More Answers (1)
the cyclist
on 19 Oct 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);
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!