Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cost = squaredErrorCost(A, b, x)
- cost = (norm(A*x - b))^2;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement