From: Shailendra Verma on
Hello everyone,

How can I plot a 2D graph between x vs y in MATLAB by reading x,y values from a .dat file (for ex. points.dat) ? The file contains more than 5000 points. I have to represent each point by a tiny spot not too large so that all points may be displayed clearly in the plot.

Thanking you in anticipation

Shailendra Verma
IT BHU, Varanasi
From: Shailendra Verma on
Hello !
There is one more thing I want to tell . The x,y values are floating point between 0.0 and 25.0 generated by a C program. The first few sample lines are :

1.2356 12.0325
24.6589 6.2563
13.2564 5.0245
10.5896 24.1405
....
....


Regards,
Shailendra Verma
From: mat001 on
"Shailendra Verma" <shail.itbhu(a)gmail.com> wrote in message <hrm44t$nrn$1(a)fred.mathworks.com>...
> Hello !
> There is one more thing I want to tell . The x,y values are floating point between 0.0 and 25.0 generated by a C program. The first few sample lines are :
>
> 1.2356 12.0325
> 24.6589 6.2563
> 13.2564 5.0245
> 10.5896 24.1405
> ...
> ...
>
>
> Regards,
> Shailendra Verma

May be this will help you

load test.dat; % read data
x = test(:,1); % copy first column of test
y = test(:,2); % and second column test
plot(x,y,'o');