You are a guest. Restricted access. Read more.
SCaVis manual

Using Matlab/Octave

SCaVis can be used to program in MatLab/Octave programming language implemented in Java. For this purpose, SCaVis uses JMathLab engine to run execute the code. Unlike other scripting languages, such as Jython, Groovy or JRuby, JMathLab scripts are less interactive and, generally, are not integrated into the JVM. However, JMathLab scripts are mainly designed for symbolic calculations.

Here is a simple script which can be used in SCaVis:

example.m
syms x % symbolic x
y=diff(x*cos(x),x) %  differentiate x*cos(x)
plot2d('minx=0;maxx=10;miny=-1;maxy=10')  % make canvas
draw2d(y) % plot the result

Save this cript into a file, say “example.m” (note the extension *.m), and run this script as usual (click on the [run]) button. The result is a pop-up window with the image as shown below:

Use JMathLab Shell for interactive programming, or the editor to create scripts and run them.

Look at the section JMathLab for more detail.

man/program/jmathlab.txt · Last modified: 2013/08/04 20:47 by admin
CC Attribution-Share Alike 3.0 Unported
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5