Gistlib Logo

gistlib

other matlab categories

gradient-descent code snippets in matlab

arrays have incompatible sizes for this operation. error in gradientdescentmulti (line 19) h = x.* theta; related documentation in matlab
create gradient descent function with constraint in matlab
create gradient descent with constraint in matlab
h = x.*theta; diff = h-y; theta = theta-(alpha/m)*x'*diff; in matlab

gistlibby LogSnag