Getting a Symbolic Variable from the user using input
显示 更早的评论
How to get a Symbolic variable as an input from the user? for example when the input prompt comes up if the user inputs nothing or a '?' sign, a symbolic variable automatically gets created. I tried using the code below and then entering something like "syms u" to create the variable but it gives this error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
Fx=input('Horizental Force on Node');
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!