Exchange random variable name between several TLC files
古いコメントを表示
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!
採用された回答
その他の回答 (1 件)
the cyclist
2011 年 10 月 19 日
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);
カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!