Entering a formula by user
1 次查看(过去 30 天)
显示 更早的评论
Is there a function which allows me to ask for a formula, while the prgram is beeing used, and subsequently use that formula?
0 个评论
采纳的回答
Nirmal
2012-7-25
aMatrix = magic(5);
expression = input('Enter the name of a matrix: ','s');
if (exist(expression,'var'))
mesh(eval(expression))
end
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!