Jumanor Lt


Registrado: 28 Feb 2003Mensajes: 91Ubicación: tacna-Peru
|
Publicado: Lun 06 Sep, 2004 10:24 pm Asunto: Uso de SAFEARRAY |
|
|
Holas:
Necesito conectarme a matlab con ActiveX en una guia dice asi
| Código: |
void GetFullMatrix(
[in] BSTR Name,
[in] BSTR Workspace,
[in, out] SAFEARRAY(double)* pr,
[in, out] SAFEARRAY(double)* pi);
|
Para llamar a esta funcion del Basic se procede del siguiente modo
| Código: |
Dim MatLab As Object
Dim Result As String
Dim MReal(1, 3) As Double
Dim MImag() As Double
rem We assume that the connection to MATLAB exists.
Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")
Call MatLab.GetFullMatrix("a", "base", MReal, MImag)
|
Echenme una mano o alguna idea he buscado en la help de builder y esta bien Feo eso del SAFEARRAY
Porque estas cosillas son tan sencillas en el Basic???
Gracias por escucharme y espero sus ayudas. |
|