I use this code to create and plot N points:
N = input(\'No. of Nodes:\');
data = rand(N,2); % Randomly generated n no. of nodes
x = data(:,1);
You can use the function RANDI to generate a random integer in a given range:
index = randi(N); %# Generate a random integer in the range 1 to N
plot(x(index),y(index),'o'); %# Plot the point
EDIT: As pointed out by Mikhail, the RANDI function has only been available since version 7.7 (R2008b). For earlier versions, the following alternative should work:
index = ceil(rand*N);