Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hold on;
- for x = 1:600;
- if labels(x) == 1;
- plot (samples(x,1), samples(x,2), 'r*');
- elseif labels(x) == 2;
- plot (samples(x,1), samples(x,2), 'g*');
- else labels(x) == 3;
- plot (samples(x,1), samples(x,2), 'b*');
- end;
- end;
- m1 = [0.496, 0.164];
- m2 = [0.395, 0.201];
- m3 = [0.306, 0.253];
Add Comment
Please, Sign In to add comment