Copyright © Michael Richmond.
This work is licensed under a Creative Commons License.
Examples of Scilab functions
Some very short, simple functions:
- square.sci
Calculates the square of a number.
- cube.sci
Calculates the cube of a number.
- plusone.sci
Adds one to a number.
- isperfect.sci
Checks to see if a number is "perfect".
- count_odd.sci
Counts the number of odd numbers within a given range.
Functions showing input/output in Scilab
- write_file.sci
Creates a file on disk and fills with input from the user.
- read_words.sci
Reads one "word" from a time from a file on disk,
printing each word on its own line to the screen.
- plot_from_file.sci
Read data from a file with 4 columns, plots col 4 vs. col 2.
Copyright © Michael Richmond.
This work is licensed under a Creative Commons License.