The following link can be very helpful: https://www.youtube.com/watch?v=imthvC5bW08
I recommend setting the variables that you want to manipulate or extract in the Hysys spreadsheet. In addition, it is advisable to place a pause in the execution of the MATLAB algorithm (using "pause (n)", n = seconds) to give hysys time to converge the simulation.
As far as I know, you can't link MatLab with Aspen Plus. You can use, instead, ACM of Aspen to model your own unit and then link it with Aspen Plus. For example, you can build a model for a membrane using ACM and then add it as a new unit to Aspen Plus
You said that put a pause to let HYSYS run to converge. I do not know whether this is necessary. I have tested the HYSYS-MATLAB program without using a pause, it worked well. But I did find some matlab code that use pause to give time for aspen plus to run as shown below.
You actually can link Aspen plus to Matlab through Excel. When you choose USER 2 model unit you will find out there is a path that Aspen plus links to the Excel file in the same folder where the ASPEN plus file is, containing inputs and output streams. Then, you can link Matlab and excel as it is explained elsewhere in the Matlab tutorials (by using read, write commands). Perhaps you can find these files interesting and contact the researchers for further info (see annexed file)