Create random numbers inside a specific plane in xy plane
4 ビュー (過去 30 日間)
I am trying to generate some samples. These samples are evenly distributed in rectangular regions of R^2.
To be more specific I want to generate 400 samples in the parallelogram [2,8] x [1,2]
and 100 (different) samples in the parallelogram [ 6 , 8 ] × [ 2.5 , 5.5 ].
Finally I want to plot them in the xy plane.
I have spent hours of searching. Any help appreciated.
Thanks in advance !
回答 (2 件)
Matt J 2022 年 6 月 28 日
I don't understand how you are specifying your parallelograms. However, one way is to use ndgrid and then apply a shear: