0
spoken_tutorial site

This site has a lot of tutorials: some of then concerning Scilab. Each tutorial has an associated zip file to go with the tutorial. I believe these are meant to be imported for the user to use. If I unzip these files and use file/open in Scilab I believe that is the correct way to import these example files in Scilab. There are both .sce and .sci files. Which are meant to be used to open in Scilab? I tried both. I did notice that, when I tried to open one of these types of files from the file/open and browse menus, the file opened in a separate window, I can see the code, but there is no way to execute it. How do I use the code from the examples?


Scilab 11-06-18, 6:50 a.m. maxcy

Answers:

0

You need to know how to use the .sce and .sci files in scilab.

The SCE convention is used to code main scilab code at the execution level. For example, the code in .sce file will have higher level function calls and other minor operations. When you execute a .sce file using right click and "open with scilab" operation, scilab executes whatever code exists inside the file. It will never open it in a scilab editor.

The SCI convention is used to code scilab functions at definition level. For example, the code in .sci file will have all (or one) function definition(s) that may be used across various .sce files. When you execute a .sce file using right click and "open with scilab" operation, scilab will open the file in the scilab editor. It may not execute its content. Executing a .sci file is important because the functions have to be defined in the workspace before they are used by the .sce files.

Again these are conventions. You may very well have the function definition inside the .sce file it it will still work!

16-12-18, 12:49 p.m. rupakrokade


Log-in to answer to this question.