Free Energy Function
MATLAB Handle Graphics