MATLAB: Finding the partial derivatives of a vector containing polynomials

vectors

I have a vector that is 4x1size and contains 4 polynomials with 4 variables each (w,x,y,z). I want to find the partial derivatives wrt each polynomial and then store it as a matrix (4×4 matrix).
So what I have is molflow = [ fA; fB; fC; fD ] (4×1 vector). Want to find partial derivatives wrt w,x,y,z for fA, fB, fC, fD and store it as a 4×4 matrix. My idea is to multiply 'molflow' with 'partial derivative vector' size 1×4 in order to obtain 4×4 matrix.
This is done easily mathematically. Is this possible on matlab? Are there any alternative solutions?

Best Answer