TOC PREV NEXT

8.2 Introduction


Some useful program elements

- 'clear' empties the screen
- 'exec' executes a file as a script.
- 'chdir' changes a working directory
- 'getf('functionfile') - gets a function from a working directory
- pwd - returns the current working directory
- 'xbasc() - clears a graphics window

For-loops in Scilab,

While-loops in Scilab,

If-then in Scilab,

Functions in Scilab,

Note that when a function is defined in Scilab it is not actually run. However when the function is called it will be interpreted.

Cases in Scilab,

Printing in Scilab,

Inputting values in Scilab,

TOC PREV NEXT