From: satya on
Hi,
I have a 200x200 matrix with all zeros created with matXX =
zeros(200x200).
Now I want to replace 1000 of these zeros with some other number (say,
1) in such a way that these 1's are distributed in such a way that
they form some N (say 50) clusters of neighborhood 4 [i mean the
distribution should give bwlabel(matXX,4) = 50].

I will be grateful if someone suggest me regarding this.

Thanks..

Satya