Is there anyone who know any function (or any suggestion) in MATLAB, that I could spread nodes on a 2D domain?
It is necessary for me that spread nodes so that the nodes density be nearly equal on whole domain.
I am grateful to you for your help.
How about rand?
If you need 2D coordinates of n points spread uniformly on a 2D domain, with width w and height h then:
xy = bsxfun(@times, rand( 2, n ), [w; h] );
figure; scatter( xy(1,:), xy(2,:), 40, '+' );axis equal;
Here's a possible result for n=500, h=3 and w=1:

