Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Converting char operations into usable ones

1 visualización (últimos 30 días)
Joanne Tamayo
Joanne Tamayo el 26 de Feb. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
How do i convert the string of '/' and '*' into usable operations for math so like 2/3 = .667 and so forth

Respuestas (2)

Star Strider
Star Strider el 26 de Feb. de 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')

Walter Roberson
Walter Roberson el 26 de Feb. de 2016
/ is the function named rdivide (for this purpose) and * is the function named times (for this purpose)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by