Files
test/machine_learning/course1/mlclass-ex7-008/mlclass-ex7/drawLine.m

8 lines
232 B
Matlab
Executable File

function drawLine(p1, p2, varargin)
%DRAWLINE Draws a line from point p1 to point p2
% DRAWLINE(p1, p2) Draws a line from point p1 to point p2 and holds the
% current figure
plot([p1(1) p2(1)], [p1(2) p2(2)], varargin{:});
end