| Symbolic Math Toolbox | ![]() |
The subs Command
You can substitute a numerical value for a symbolic variable using the subs command. For example, to substitute the value x = 2 in the symbolic expression,
When your expression contains more than one variable, you can specify the variable for which you want to make the substitution. For example, to substitute the value x = 3 in the symbolic expression,
On the other hand, to substitute y = 3, enter
| The findsym Command | The Default Symbolic Variable | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |