Saturday, 2 June 2012

scilab tutorial using script

      Hey , i have gone through a lot of bogs on modelling and simulation and found out various software regarding the same.

      I have learnt about matlab/simulink which is the most widely used by scientists and engineers and hence i will show you how to use scilab/scicos  a matlab/simulink alternative . In these series of blog posts i will teaching usage of scilab/scicos in a hands on approach . 

      So, in the first post i would like to tell you regarding getting scilab , mine is version 5.3.3 got it from here.  A few things we need to know before we begin . 
1. Scilab is a scripting language interpreted by the scilab compiler .
2. Scilab reads a vast inbuilt functions and also can read hardcoded c or fortran code . 
3. We can develop our own toolboxes , customize them to suit our specific use . Since this can certainly make it more advantageous. 
4. Also we have a matlab to scilab interpreter so do not worry :)

In this first post i will tell you regarding scripting ; It has .sci and .sce file extensions . .sce reads that the code has inbuilt functions and .sci reads we have some customized code. Its just a convention 






 In this section i will show how a  .sce  file is written and used. 
First create a ex1.sce file in your directory.
Best way is usually to use the
Scilab Editor
 You can fill it up with some code like this 
Loading ....

No comments:

Post a Comment