Borrar filtros
Borrar filtros

Neural Network to approximate function

2 visualizaciones (últimos 30 días)
Tobias Frederiksen
Tobias Frederiksen el 6 de Mayo de 2022
Respondida: Umang Pandey el 25 de Sept. de 2023
Hello I am trying to create a Neural Network to predict a function (Rosenbrock function). I desire to use the toolbox provided by MATLAB but i don't know which function to use. Can someone help me? The Rosenbrock function looks like this: Hope someone is willing to help me.

Respuestas (1)

Umang Pandey
Umang Pandey el 25 de Sept. de 2023
Hi Tobias,
The rosenbrock function is provided within the Deep Learning toolbox. Here is the code for the same:
function [y,dydx] = rosenbrock(x)
y = 100*(x(2) - x(1).^2).^2 + (1 - x(1)).^2;
dydx = dlgradient(y,x);
end
For more information, refer the following documentation:

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by