From 3a59c0ea27c9e8721ec0e520247f4c3d8bcee95e Mon Sep 17 00:00:00 2001 From: Soham Malakar Date: Wed, 31 Jul 2019 12:55:52 +0530 Subject: [PATCH] Update plotData.m --- plotData.m | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/plotData.m b/plotData.m index 31e8e9d..c35edf2 100644 --- a/plotData.m +++ b/plotData.m @@ -3,29 +3,15 @@ function plotData(X, y) % PLOTDATA(x,y) plots the data points with + for the positive examples % and o for the negative examples. X is assumed to be a Mx2 matrix. -% Create New Figure +% Creating New Figure figure; hold on; -% ====================== YOUR CODE HERE ====================== -% Instructions: Plot the positive and negative examples on a -% 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+','LineWidth',2); %hold on; plot(X(neg,1),X(neg,2),'ko', 'MarkerFaceColor','y'); - - - - -% ========================================================================= - - - hold off; end