1
0
Fork 0

Plot the data

This commit is contained in:
neingeist 2014-10-13 23:03:23 +02:00
parent 580e52ddc5
commit d52fa95328

View file

@ -11,7 +11,11 @@ figure; hold on;
% 2D plot, using the option 'k+' for the positive
% examples and 'ko' for the negative examples.
%
pos = find(y==1);
neg = find(y==0);
plot(X(pos, 1), X(pos, 2), 'k+');
plot(X(neg, 1), X(neg, 2), 'ko');