MATLAB: Simple question regarding plot

plots

Hello all
I have 2 set of data let say Given_data and Obtained_data now I want to draw first Given_data on x axis as red points and Obtained_data on y axis as blue points.
How that can be done?
Please Guide

Best Answer

Given_data = rand(10,1);
Obtained_data = rand(10,1);
plot(zeros(size(Given_data)),Given_data,'r+');
hold on
xlabel('Given_data');
plot(Obtained_data,zeros(size(Obtained_data)),'b+');
hold off
ylabel('Obtained_data');
Related Question