"Phil Goddard" <email@example.com> wrote in message <firstname.lastname@example.org>... > 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?