/matlab-octave-web-interface

Web server and interface for Matlab and Octave

Primary LanguageMATLABGNU Affero General Public License v3.0AGPL-3.0

A Web Browser Interface and Server for Matlab and Octave

About

A simple experimental web browser interface for Matlab and Octave. Running the web_server('start') command starts a local TCP and web server and opens a connected web browser window which accepts Matlab and Octave commands as input. Plots are translated via the Plotly Javascript library into Html graphs.

Matlab Octave Web Browser and Server Interface

Installation

Download the webserver archive and extract the contents in a convenient folder.

Requirements

  1. A modern web browser with Javascript enabled and flexbox CSS support.

  2. Matlab or Octave installed.

  3. Java installed and support enabled with Matlab and Octave.

Usage

Simply change to the extracted folder or add it to the Matlab/Octave paths and run the command

web_server( 'start' )

to start the web server and open the mirrored Matlab/Octave session in the default web browser. To stop the sever run the command

web_server( 'stop' )

To see the available options enter

help web_server
help tcp_server

Known Issues

  1. The Plotly library needs further improvements to fully support Octave (currently only line plots are supported). The main issue is that a lot of struct calls in the Plotly conversion function are accessed as s.Color or s.XLabel where in Octave the fields are all in lower case, that is s.color and s.xlabel.

Credits

[1] Matlab Webserver by Dirk-Jan Kroon

[2] Plotly Javascript library

Software License

GNU Affero General Public License AGPL