Entering a formula by user
1 view (last 30 days)
Show older comments
Is there a function which allows me to ask for a formula, while the prgram is beeing used, and subsequently use that formula?
Nirmal on 25 Jul 2012
Have a look at eval: http://www.mathworks.com/help/techdoc/ref/eval.html
aMatrix = magic(5);
expression = input('Enter the name of a matrix: ','s');
More Answers (0)
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!