Reputation: 5432
I'm trying to access some Scilab functions from my C++ project. I'm working on Windows 7. How can I do that.?
For example,
function [r] = fun(a,b)
r =a+b;
endfunction
How can I tell my C++ project, it should run the Scilab function "fun" and give the parameter a=4, b=9. so that I get their value?
If somebody did this for MATLAB, I think this will be the same here (without using its engine).
Upvotes: 0
Views: 1121
Reputation: 352
You will need the Scilab runtime aside, but call_scilab is probably what you are looking for.
Upvotes: 0
Reputation: 6050
For MATLAB, you can use the MATLAB compiler, and you should be able find some examples on the MATLAB website.
Upvotes: 0
Reputation: 3032
A lead would be to use Julia that is quite similar to MATLAB. I'm not sure it's possible yet to compile to a library. The project is based on LLVM so maybe you can generated C code and integrate it with your code.
Upvotes: 1