To create the 4th derivative of a variable y
in MATLAB, you can use the diff
function four times on y
. Here's an example:
main.m98 chars4 lines
In this example, y
is the function of interest, and we take its 4th derivative with respect to x
. The result is a symbolic expression for the 4th derivative of y
.
gistlibby LogSnag