Hello,
Probably it is too late... I was trying to perform Monte Carlo of hec-ras parameters. I don't know activeX technology too good, but according to my experiences it is very problematic issue. The HEC-RAS transfers most of information via reference to a structure called system.array. Matlab, as I know, can deal only with basic types like boolean, double and strings (etc). So it might be only possible to run model but you cannot read anything form it. However in older versions, I thing, it was possible to read results form a ASCII file *.bco (UNET out-file).
Only way to make it work together, is to write external program in for example Visual Basic (I prefer .NET version). And here are two possibilities:
- Write you own activeX controler in
VB for hec-ras, which would translate system.array into basic types. Only problem is that all necessaryly libraries are not available for free.
- Use Hec-Ras together with Matlab from external program, written in environment, which can deal with System.arrays.
I have used here MS
VB .NET and it works fine. Matlab, like Hec-ras, can be run as activex service. Off course it is not the most convenient solution.
If you have more detailed questions, I send code samples.
Best