repo.or.cz
/
ltsps.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
More tests + GUI
[ltsps.git]
/
generateRandomCoordMatrix.m
blob
c9e4b618470bda24aa0277783a86d2401848ba16
1
function coordMatrix = generateRandomCoordMatrix(n, max)
2
% generateRandomCoordMatrix
3
% description: Generates a random coordinate matrix.
4
% date: 8 Oct 2008
5
coordMatrix = zeros(n,3);
6
7
for i=1:n
8
x = unidrnd(max);
9
y = unidrnd(max);
10
11
coordMatrix(i,1) = i;
12
coordMatrix(i,2) = x;
13
coordMatrix(i,3) = y;
14
end
15
end