You are on page 1of 4

Calling Scilab from Excel

Version 0.2 7/17/2009

This is a demo workkbok to show how to use Thomas Baier's COM server for Scilab
from within Excel
You have to install the R-Scilab server (currently available from http://rcom.univie.ac.at)
before the sheet will work.

The sheets in this workbook demonstrate 3 ways of using the interface

DirectTransfer Direct menu controlled data transfer and Scilab command execution
Macros Using macros to transfer data and run Scilab command
Formulas Worksheet functions calling Scilab
1 2 3 Select A1:C3
3 2 1 Click Put on Scilab toolbar
2 1 3 Enter m1 for the variable name

m2=m1*m1 Select A6
Click Run on Scilab toolbar

Select A10
Click Get on Scilab toolbar
Enter m2 for the expression

Select A15
Click Get on Scilab toolbar
Enter inv(m2) for the expression
Matrix MyMat
5 2 3
3 1 1
3 1 2
1 2 If you see error messages
3 5 press Ctrl-Shft-Alt-F9
to trigger a complete recalc
#VALUE! #VALUE!
#VALUE! #VALUE!

#VALUE!
#VALUE!

#VALUE!

#VALUE!

#VALUE!

#VALUE! #VALUE!
#VALUE! #VALUE!

3 1
1 3

Select A24
enter the formula
=scilab("chol",A21:B22)
With cell A24 still selected
click Adjust on the Scilab toolbar

You might also like