Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [v0, V] = determine_classification_line_params (num_el, X1, X2, Gamma)
- Z = [-ones(1,num_el) ones(1,num_el); -X1 X2];
- W = (Z*Z')^(-1)*Z*Gamma;
- v0 = W(1);
- V = [W(2);W(3)];
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement