Did you know ?
How to access Prode Properties library from MATLAB (continuation...)
In addition to the direct access previously discussed, you can use Prode Properties from Matlab with scripts or mex files.
Matlab scripts are installed in directory \Prode\MATLAB\m and before to utilize the scripts you must move the files into a Matlab directory, read Matlab documentation for additional information, then you should edit the file pppdir.txt which contains the address where the file ppp.h resides.
Scripts act as interface between Matlab and Prode Properties, scripts have names identical to Prode Properties methods, then when you invoke the script StrGD (which is the method in Prode Properties to calculate density of vapor phase) MATLAB simply executes the commands found in the file, calls the method StrGD in Prode Properties and return the result.
The file called StrGD.m contains these MATLAB commands
function  = StrGD(stream)
fid = fopen('pppdir.txt'); hfile = fgetl(fid); fclose(fid);
h = uimenu('Label','Properties');
h1 = uimenu(h,'Label','Edit Properties','Callback','edSS');
h2 = uimenu(h,'Label','Open Archive','Callback','AOpen');
h3 = uimenu(h,'Label','Save a Archive','Callback','ASave');
d = calllib('ppp', 'StrGD', stream)
By typing in Matlab the command
Matlab executes the code within the script, it loads the ppp.dll (if not in memory) , creates a menu bar (with the standard Prode Properties commands) and then executes the method StrGD, to calculate the density.
You can write scripts to solve more complex problems, an example is the script phaseenvelope.m which prints a phase envelope, to test the scipt type in Matlab the command
Matlab will invoke Prode Properties to calculate the phase envelope for the stream 1 , then it plots the resulting graph (see the photo).