Syms and Plugging numbers into equations

19 views (last 30 days)
Andy
Andy on 24 Feb 2013
Essentially I used syms so that I could do a partial derivative, g. Now that I have that, I want to plug in the values for the symbols I created, and then plug those values into g, and have MATLAB return a numerical result as my final answer.
How would I go about doing this?

Answers (1)

Walter Roberson
Walter Roberson on 24 Feb 2013
double( subs(g, {variable1, variable, variable3, ..), {value1, value2, value3, ...}) )

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!