How to substitute x by an integer in a derivative function
1 view (last 30 days)
Andreas Apostolatos on 29 Mar 2021
To evaluate symbolic expression 'a' at 'x = 1' you can use function 'subs', namely,
a_at_1 = subs(a, 1);
I am not sure why you tried typing 'a(2)' since you are trying to evaluate 'a' at 1.
More information about function 'subs' you can find in the following documentation page,
I hope that this helps.