Instructions on getting octave set up or installed.
Installing Octave for debian systems (Debian, Ubuntu):
Simple: sudo apt-get install octave
Advanced:
Well, if you want to install other external packages
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal oct...
start Octave by running the command octave (the executable should be in your path)
type disp('Hello, World!') at the Octave command prompt
>> disp('Hello, World!')
Hello, World!
Octave commands can be saved in a file and evaluated by loading the file using source.
For instance, let hello.m be the text file containing two lines (the first line is a comment)
# my first Octave program
disp('Hello, World!')
If you type source hello.m at an Octave command prompt you will g...
Create a 2x3 matrix. Each row is a comma-separated list of elements. Rows are separated by a semicolon.
A = [1, 2, 3; 4, 5, 6]
# A =
#
# 1 2 3
# 4 5 6
Sum of two matrices
B = [1, 1, 1; 1, 1, 1]
# B =
#
# 1 1 1
# 1 1 1
A+B
# ans =
#
# 2 3 4
# ...