How can I include a VB script in a Matlab code?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a VB script written for several Excel functions. The purpose is to calculate the properties of flue gas at different conditions based on its composition. The VB script has the description of the each function and its variables and it calls the results from a dll file, which, I suppose performs the calculation and returns the value to the VB script. Now if I want these to be written on a MATLAB code how can I call a function which performs the same task as the VB script by calling the dll file?
0 Commenti
Risposte (1)
Aylin
il 5 Set 2017
Hi Sriram,
MATLAB has several external interfaces which could be used to call external scripts and DLLs:
1. If you want to call functions from a generic DLL (C/C++ shared library), the loadlibrary function can be used:
loadlibrary('MyLibrary.dll', 'MyLibrary.h')
2. MATLAB can be called as a COM server from a Visual Basic script:
3. MATLAB can also call other COM objects , or use the COM API to control an Excel instance from within MATLAB :
0 Commenti
Vedere anche
Categorie
Scopri di più su Use COM Objects in MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!