Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Converting char operations into usable ones
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How do i convert the string of '/' and '*' into usable operations for math so like 2/3 = .667 and so forth
0 Commenti
Risposte (2)
Star Strider
il 26 Feb 2016
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 Commenti
Walter Roberson
il 26 Feb 2016
/ is the function named rdivide (for this purpose) and * is the function named times (for this purpose)
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!