How to dynamically generate a file name from a cell array?
显示 更早的评论
Hi All,
I'm pretty new to MATLAB so sorry for any vocabulary abuses. I am trying to write a script which dynamically generates file names from the values of a cell array (all text). But I can't seem to find a way to code in the selection of a variable into a save command. Everything I've tried reads the variable as text.
Here is my code: savename=Filenames(1)
savename =
'CRM 114 Bottle 1183-pre CV1 ALK3'
How do I generate a text file with the name "CRM 114 Bottle 1183-pre CV1 ALK3" instead of "savename"?
Thanks so much for the assistance.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!