Ticket #44316: ex.m

File ex.m, 174 bytes (added by killserver@…, 10 years ago)

code, that produce error

Line 
1# not a function file
21;
3
4function cost = costFunction( theta )
5    cost = theta(1);
6end
7
8initial_theta = [0];
9[theta, cost] = fminunc(@(t)(costFunction(t)), initial_theta);