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

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