clc;clear all;n=15;X=randi([1,100],1,10);Y=randi([1,100],1,10);L=[0,100,100,0,0];B=[0,0,100,100,0];plot(L,B,'k','LineWidth',8);plot(X,Y,'k','*k');
MATLAB: I want to plot a 15 points randomly in square of dimensions (100*100) such that minimum distance between every point should 5. please help.
geomtrylinemathematicsMATLABrandomrandom number generator
Best Answer