The solution depends on the question effort versus speed. Do you look for a quick solution executed rarely or do you look for a professional solution as required for optimisations?
Matlab can call EES function in different ways.
per call to EES (command) and interpretation of the output generated by $EXPORT command
By DDE
By direct linkage of the dll, containing the function
Question: Which function of EES are you interested in?
I'm prefer to convert the functions ( that integrated in EES) such as enthalpy vs. temp. or density vs. pressure as a polynomial functions , and then use them in Matlab.