scilab

Call a scilab function


I'm using scilab on cloud

function c = example(a,b)
    c = a*b
endfunction

How can I call it? I tried exec(example(3,2)) without success


Solution

  • This solution seems to work although obviously in this case I can't call the file before calling the function.

    result = example(3, 2)