Construct Timer using evalin
显示 更早的评论
I am working on a gui and I want to make a timer in workspace. I use this command but it occured error:
evalin('base','Timer=timer');
evalin('base',['Timer.Name=' 'Timer01']); It cannot change timer name. Please help me.
采纳的回答
更多回答(1 个)
Chirag Gupta
2011-7-21
evalin('base','Timer.Name = ''test123''');
You need to escape '
2 个评论
Milad Javan
2011-7-21
Walter Roberson
2011-7-21
Wouldn't assignin(base, 'Timer.Name', 'test123')
be more straight-forward ?
类别
在 帮助中心 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!