figure;
plot(trainingSet(:, 1), trainingSet(:, 2), '*');
figure;
plot(reprVectors(:, 1), reprVectors(:, 2), '*');
How do I plot the points from trainingSet and reprVectors in same figure instead of 2 different ones?
Also How can I make trainingSet pts blue and reprVectors points red?
What you describe is the subplot function: same figure, different plot axes
eg:
This plots the function y=x and y=x^2 in one figure, but next to eachother.
The red/blue and marker options are already explained in other answers 🙂