function F = trackmmobj(pid,a1,a2)
% Track the output of optsim to a signal of 1

%   Copyright (c) 1990-98 by The MathWorks, Inc.
%   $Revision: 1.1 $  $Date: 1998/09/10 19:43:38 $

Kp = pid(1);
Ki = pid(2);
Kd = pid(3);

% Compute function value
opt = simset('solver','ode5','SrcWorkspace','Current');
[tout,xout,yout] = sim('optsim',[0 100],opt);
F = yout;
assignin('base','F_TRACKMMOBJ',F);

