?? poisson2d.m
字號:
function [pproc] = poisson2d(lambda)
% POISSON2D generate and plot Poisson process in the plane
% (square [0,1]x[0,1]).
%
% [pproc] = poisson2d(lambda)
%
% Inputs: lambda - intensity of the process
%
% Outputs: pproc - a matrix with 2 columns with coordinates of the
% points of the process
% Authors: R.Gaigalas, I.Kaj
% v1.2 07-Oct-02
% the number of points is Poisson(lambda)-distributed
npoints = poissrnd(lambda);
% conditioned that the number of points is N,
% the points are uniformly distributed
pproc = rand(npoints, 2);
% plot the process
plot(pproc(:, 1), pproc(:, 2), '.');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -