Entering a formula by user

2 visualizaciones (últimos 30 días)
Karel
Karel el 25 de Jul. de 2012
Is there a function which allows me to ask for a formula, while the prgram is beeing used, and subsequently use that formula?

Respuesta aceptada

Nirmal
Nirmal el 25 de Jul. de 2012
aMatrix = magic(5);
expression = input('Enter the name of a matrix: ','s');
if (exist(expression,'var'))
mesh(eval(expression))
end
  1 comentario
Karel
Karel el 25 de Jul. de 2012
thanks, yust what i needed

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by