Info
此问题已关闭。 请重新打开它进行编辑或回答。
Converting char operations into usable ones
1 次查看(过去 30 天)
显示 更早的评论
How do i convert the string of '/' and '*' into usable operations for math so like 2/3 = .667 and so forth
0 个评论
回答(2 个)
Star Strider
2016-2-26
I really should not tell you because this is extremely poor programming practice.
You must absolutely promise never to use it in your code.
x = eval('2/3')
0 个评论
Walter Roberson
2016-2-26
/ is the function named rdivide (for this purpose) and * is the function named times (for this purpose)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!