0
votes

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).

3

3 Answers

1
votes

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.

0
votes

For MATLAB, you can use the MATLAB compiler, and you should be able find some examples on the MATLAB website.

0
votes

You will need the Scilab runtime aside, but call_scilab is probably what you are looking for.