value in each iteration
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
f=@(x) 0.5*(x(1)-1).^2+10*(x(2)+2).^2-2
miter=10000
and i have loop
for i=1:miter
then,who i can to calculate f(i)-f(i-1)?
6 commentaires
Walter Roberson
le 19 Sep 2020
You cannot. Your gradient descent formula is only valid for functions of one variable.
Réponses (1)
saja mk
le 19 Sep 2020
1 commentaire
Walter Roberson
le 19 Sep 2020
this does not use the epsilon formula from https://www.mathworks.com/matlabcentral/answers/596404-value-in-each-iteration#comment_1015369
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!