Partial Derivatives in Matlab
mse.redwoods.edu › darnold › math50cMar 20, 2014 · Partial Derivatives in Matlab. f ( x, y) = 9 - x 2 - y 2 . Let's use Matlab to draw the surface represented by the function f over the domain { ( x, y): - 2 ≤ x, y ≤ 2 }. We begin by creating a grid of ( x, y) pairs. When used in this form, Matlab uses the entries in the vector -2:.25:2 for both x and y.