Entering a formula by user
    6 views (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?
0 Comments
Accepted Answer
  Nirmal
      
 on 25 Jul 2012
        aMatrix = magic(5);
expression = input('Enter the name of a matrix: ','s');
if (exist(expression,'var'))
    mesh(eval(expression))
end
More Answers (0)
See Also
Categories
				Find more on Loops and Conditional Statements in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
