Search:
GitHub Login
Preferences
My Notifications
Tickets
Wiki
GitHub
Timeline
Roadmap
Ticket Reports
Search
Context Navigation
Back to Ticket #44316
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
2
1;
3
4
function cost = costFunction( theta )
5
cost = theta(1);
6
end
7
8
initial_theta = [0];
9
[theta, cost] = fminunc(@(t)(costFunction(t)), initial_theta);
Download in other formats:
Original Format