Files
mlpack/fastlib/trunk/contrib/tqlong/PassiveAggressive/plot_data.m
T
2010-03-05 22:12:08 +00:00

5 lines
244 B
Matlab

function plot_data(samples, labels)
samples = samples(:, 1:2); % only plot in 2 dimensions
plot(samples(labels>0), '+b', 'LineWidth', 2, 'MarkerSize', 12); hold on;
plot(samples(labels<0), 'dr', 'LineWidth', 2, 'MarkerSize', 12); hold off;
end