How to calculate derivative of function of inside of another function ?
1 view (last 30 days)
Show older comments
I can calculate g(-2) but I can not calculate g'(-2) at the same time with g(2). How can I write a function to calculate both of them in one function.
0 Comments
Answers (1)
madhan ravi
on 2 Jun 2020
doc syms
doc diff
5 Comments
madhan ravi
on 3 Jun 2020
- You create a function
- Which takes in a function
- You evaluate it at a given point
- You differentiate that function at a given point (Hint: diff(...) )
Possible sources:
doc syms
doc diff
doc function
Lots of examples to go with the flow.
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!