Matlab - rename a variable with sprintf and save it
2 次查看(过去 30 天)
显示 更早的评论
Hi everyone, someone can help me please?
i have a variable named Var1 and i want to rename it to:
Var2=sprintf('Name%s%s,LOC,Run)
So i used:
str[var2,'=Var1]; eval(str)
but how can i save the Var2 with the name 'sprintf('Nome%s%s,LOC,Run)' if i don´t know it because depends of the parameters LOC and Run??
I really can´t explain better.
Thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!