Actully, the function 'staticderivative' can do this for a static network. In general, however, it is likely that defaultderiv is the better choice.
help defaultderiv
help staticderiv
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!