A function which equal to type command?
显示 更早的评论
Hello,
I remember that there is a function which operates same as typing a function input directly.
For example, If you input command
?function(data=0.1)
It operates same as just typing
data=0.1
I can't remember exact name of this function....
Please help me..
Thanks for your advice. :)
2 个评论
Brendan Hamm
2015-3-20
I think you are looking for
eval('data = 0.1')
Stephen23
2015-3-20
Avoid using eval for something trivial like this. Read my answer to know why.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!