EspañolHome / Algorithms in Matlab or Octave

Install Octave

We'll detail some options for downloading and installing Octave for free on each operating system, although this isn't necessary if you're using it online. You can find more information about Octave on its website, including its HTML and PDF manual.

Another option is to use Matlab, but this software isn't free. However, you can use a free 30-day trial version. You can also use their help.

Windows

Linux

Android

pkg install wget
wget https://its-pointless.github.io/setup-pointless-repo.sh
sh setup-pointless-repo.sh
pkg install octave

There are two options for installing the features.

cd /storage/emulated/0/matlaboctave

octave

wget https://drive.google.com/uc?id=1ws7yYWuiwF0D8R6fhH4BY9sPJo62sgRw

unzip matlaboctave2.zip

octave

To get a graph as an image with the terminal in text mode, without having to install anything else, first run the command to create the graph and then run the command:

print image1.gif

The graph will be contained in the file image1.gif.

Unix

Mac OS

Installing the Functions in Matlab or Octave

After installing Octave or Matlab to make the functions available (and if you're not using Android):

cd c:\matlaboctave

Installing and Loading the Symbolic Package in Octave

Octave offers some packages that expand the program's computational capabilities, although they are not required to use the functions in numerical mode. To use them in symbolic mode (and perform calculations with variable or exact precision), you do need to have the symbolic package installed and loaded.

Installing the Package

1. Download symbolic-win-py-bundle-2.9.0.tar.gz to a directory, for example c:\matlaboctave

2. Open Octave and run the commands:

cd c:\matlaboctave 

pkg install symbolic-win-py-bundle-2.9.0.tar.gz

A video tutorial is available that describes the installation of Octave and the symbolic package on Windows.

Loading the package

On any operating system, run the command every time you start Octave:

pkg load symbolic

EspañolHome / Algorithms in Matlab or Octave