Using a Variable inside the name to save a file
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
I would like to use a Variable that changes inside the name of a file to save.
the variable is "ID"
ID=P01
and I want to save a created figure as following:
saveas(gcf,'date_'[ID]'_task.jpg');
but that obviously doesn't work, and i dont know what the trick is :(
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!