How to do partial derivates?
Show older comments
So i have this function x*sin(x*y)
and I'd need to do a partial derivate like this with it: d^2/dxdy
How do I write it?
Answers (1)
syms x y
f = x*sin(x*y);
dxy = diff(diff(f,x),y)
dyx = diff(diff(f,y),x)
By the way: it's called "partial derivatives", not "partial derivates".
Categories
Find more on Calculus in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!