A function which equal to type command?
Ältere Kommentare anzeigen
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 Kommentare
Brendan Hamm
am 20 Mär. 2015
I think you are looking for
eval('data = 0.1')
Stephen23
am 20 Mär. 2015
Avoid using eval for something trivial like this. Read my answer to know why.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!