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!