|
From: | Sundar Dha |
Subject: | HELP: Do "octave" have com automation server or dll to access from external vb code |
Date: | Thu, 28 Oct 2010 12:16:45 -0700 (PDT) |
Thank for your reply, I have one more question in this regard.....
1. How do i install and activate the "octave" com server
2. or How do i call the dll from vb, say for example like this
DIM oBJ
oBJ = createobject("<here enter octave dll . function or class >").
If you notice the following code, which Running MATLAB Function from Visual Basic .NET Program, I would like to know whats the exe or dll or files to be called like this to access "octave" function.
Dim MatLab As Object Dim Result As String Dim MReal(1, 3) As Double Dim MImag(1, 3) As Double MatLab = CreateObject("Matlab.Application") 'Calling MATLAB function from VB 'Assuming solve_bvp exists at specified location Result = MatLab.Execute("cd d:\matlab\work\bvp") Result = MatLab.Execute("solve_bvp") 'Executing other MATLAB commands Result = MatLab.Execute("surf(peaks)") Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") Result = MatLab.Execute("b = a + a ") 'Bring matrix b into VB program MatLab.GetFullMatrix("b", "base", MReal, MImag) Thanks sundar PS: The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes 3) Never do it tomorrow when you can postpond it for one more day --- On Thu, 10/28/10, Sundar Dha <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |