Find Function minima using fminsearch | MATLAB
Вставка
- Опубліковано 14 жов 2024
- Code:
clc
clear all
close all
warning off
funh=@(x) sin(x)+cos(2*x);
fplot(funh);
grid on;
[xm ym]=fminsearch(funh,0);
hold on;
plot(xm,ym,'ro','linewidth',5);
Note:
This function use a direct search method that does not use numerical or analytic gradients .
If you want to explore the algorithm , you can check this link:
in.mathworks.c...
Learn Machine Learning using MATLAB:
• Importing Dataset | MA...
#MachineLearning #MATLAB #CurveFitting