%% Create a sdeddo Object
% The sdeddo class derives from the base sde class. To use this class, you must pass drift and diffusion-rate objects to the sdeddo function.
% Create drift and diffusion rate objects:

F = drift(0, 0.1);      % Drift rate function F(t,X)
G = diffusion(1, 0.3);  % Diffusion rate function G(t,X)

%
% Pass the functions to the sdeddo function to create an object obj of class sdeddo:

obj = sdeddo(F, G)      % dX = F(t,X)dt + G(t,X)dW

% In this example, the object displays the additional parameters associated with input drift and diffusion objects.
% Copyright 2012 The MathWorks, Inc.