Effacer les filtres
Effacer les filtres

Entering a formula by user

1 vue (au cours des 30 derniers jours)
Karel
Karel le 25 Juil 2012
Is there a function which allows me to ask for a formula, while the prgram is beeing used, and subsequently use that formula?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by