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

%   Copyright 1990-2000 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2000/06/16 22:25:48 $

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);

