You can also use this Matlab toolbox https://uk.mathworks.com/matlabcentral/fileexchange/69074-energyplus-co-simulation-toolbox