If you are a SCILAB advanced user, you might already have developed a lot of scripts for different purposes. At this stage, it might also appear valuable for you to package those scripts into given applications, could be SCILAB libraries that would be automatically loaded at SCILAB start or scripts with Graphical User Interface. In that case, what you would like to do is what we call a TOOLBOX.
To get started you can get inspiration from the toolbox_skeleton, packaged and distributed with Scilab in the contrib directory:
Let us start with the very little you need in order to get your toolbox working:
Not so important at first. It defines the actions to perform when we quit the toolbox. You can leave it empty.
This script is executed at startup. You can add a function call at the end of the script.
This is where you save all your functions written in Scilab (also called macros).
This script is called by the builder.sce at the root of your toolbox. It generates a binary version of your Scilab functions (.bin).
By executing this file, you will build your toolbox.
This is important if you want to carry modifications on your toolbox. You need to clean the previous build. This will result in deleting all the .bin files, as long as the loader and unloader.
With what have been said in mind you are now able to create your own SCILAB toolbox by following those steps :