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!