フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Converting char operations into usable ones

1 回表示 (過去 30 日間)
Joanne Tamayo
Joanne Tamayo 2016 年 2 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How do i convert the string of '/' and '*' into usable operations for math so like 2/3 = .667 and so forth

回答 (2 件)

Star Strider
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')

Walter Roberson
Walter Roberson 2016 年 2 月 26 日
/ is the function named rdivide (for this purpose) and * is the function named times (for this purpose)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by