This commit is contained in:
2017-05-28 06:50:45 +09:00
parent b4c0085bfb
commit fd8432ccbf
7 changed files with 34 additions and 11 deletions

View File

@@ -12,10 +12,15 @@ figure; hold on;
% examples and 'ko' for the negative examples.
%
pos = find(y==1);
neg = find(y == 0);
plot(X(pos, 1), X(pos, 2), 'k+','LineWidth', 2, 'MarkerSize', 7);
plot(X(neg, 1), X(neg, 2), 'ko', 'MarkerFaceColor', 'y', 'MarkerSize', 7);
ylabel('Exam 2 score');
xlabel('Exam 1 score');
legend('Admitted', 'Not admitted');