Add suffix to name of all variables in workspace
15 次查看(过去 30 天)
显示 更早的评论
Hi,
Is there a way to add a suffix to the end of the names of every variable in the work space? (i.e. i have variables a,b, and c, and want to have a_test = a; b_test = b; and c_test = c. I have too many variables to do this one by one. Any help would be appreciated.
Thank you!
IP
0 个评论
采纳的回答
Steven Lord
2023-2-2
Can you dynamically create variables with patterned names like a_test, b_test, c_test, etc.? Yes.
Should you do this? The general consensus is no. That Answers post explains why this is generally discouraged and offers several alternative approaches.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!