求助有关运用拟蒙特卡​洛方法在一个区域内均​匀的选取点。

조회 수: 1 (최근 30일)
dabej
dabej 2022년 11월 24일
답변: giyen 2022년 11월 24일
我是做图像处理方面研究的,在一篇文章中看到用拟蒙特卡洛方法在一个区域内均匀的选择一定量的点作为种子点,可是对于拟蒙特卡洛方法完全不懂,希望有大神能给予我一定的帮助,谢谢了。
在坐标轴内已知某一矩形区域,用拟蒙特卡洛方法在该矩形区域内选择一定量的均匀分布的点,类似下面的图片。

채택된 답변

giyen
giyen 2022년 11월 24일
举个例子:
xy = unifrnd(0,1,1000,2);
scatter(xy(:,1),xy(:,2))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!