% % Example on epage XXX % % Problem on epage 517 % % Written by: % -- % John L. Weatherwax 2008-02-20 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- clear all; close all; clc; addpath('../../Code/CSTool'); randn('seed',0); rand('seed',0); %-- % Using Example 12.13 to generate samples from an inhibition process: %-- delta = 0.1; % Get the vertices for the region. rx = [0 2 2 0 0]; ry = [0 0 2 2 0]; n = 100; X = zeros(n,2); % Generate the first event. X(1,:) = csbinproc(rx,ry,1); i = 1; % Generate the other events. while i