How do I calculate partial derivatives numerically for a multi dimensional function?

2 vues (au cours des 30 derniers jours)
Hamid Attar
Hamid Attar le 17 Mai 2020
Hello,
I have a 6 dimentional function, which is a trained Gaussian process regression model obtained using the Regression Learner Matlab app.
I want to calculate the particual detivatives numerically with respect to each of the dimentions.
How can I do this, when the function is of the form trainedModel.predictFcn(x), where x is the 6 dimentional input vector?
Many thanks!
p.s. the reason I want to do this, is to use the Newton Raphson method to solve the equation f(x)=Y, please see my other question here if you can kindly give any further help:

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by