완료
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user