Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用这种条件在 Matlab 中模拟数据:
样本均匀地位于半径为 3 的圆上。方差为 0.05 的法线噪声被添加到 X 和 Y 坐标。
这个数据的数字在这里:
谢谢我得到我的答案:) 下面的代码是我的答案:
ang=linspace(0,2*pi,200); xp=(3+.05*randn(1,200)).*cos(ang); yp=(3+.05*randn(1,200)).*sin(ang); scatter(xp,yp,'r+')