%% Specify Estimated Parameters Using an EstimatedInfo Object
% Create a one-compartment PK model with bolus dosing and linear clearance.

pkmd                    = PKModelDesign;
pkc1                    = addCompartment(pkmd,'Central');
pkc1.DosingType         = 'Bolus';
pkc1.EliminationType    = 'linear-clearance';
pkc1.HasResponseVariable = true;

%
% Suppose you want to estimate the volume of the central compartment (Central). You can specify such estimated model quantity as well as appropriate parameter transform (log transform in this example), initial value, and parameter bound using the estimatedInfo object.

estimated = estimatedInfo('log(Central)','InitialValue', 1,'Bounds',[0 10])

% Copyright 2012 The MathWorks, Inc.