Neural Network to approximate function

조회 수: 12 (최근 30일)
Tobias Frederiksen
Tobias Frederiksen 2022년 5월 6일
답변: Umang Pandey 2023년 9월 25일
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.

답변 (1개)

Umang Pandey
Umang Pandey 2023년 9월 25일
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:

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by