"Phil Goddard" <firstname.lastname@example.org> wrote in message <email@example.com>... > As per the MLEvalString command, the results are generated by the MATLAB command > [portStd, portRet, portWts, portIndx] = ComputeBestPortfolio(expRet,expCov,portSize,targetRet) > > i.e. within the function ComputeBestPortfolio > > Phil.
Yes!! But, I still don't really understand how it works? Is the VBA code running built-in functions in Matlab? I assume it is. I think the VBA is calling, and running, functions in Matlab, and the whole process is controlled by the ExcelLink? Is that how it works?