YAP 7.1.0
MATLAB Package Interface

The MathWorks MATLAB is a widely used package for array processing. More...

Detailed Description

The MathWorks MATLAB is a widely used package for array processing.

YAP now includes a straightforward interface to MATLAB To actually use it, you need to install YAP calling configure with the --with-matlab=DIR option, and you need to call use_module(library(lists)) command

Accessing the matlab dynamic libraries can be complicated In Linux machines, to use this interface, you may have to set the environment variable LD_LIBRARY_PATH Next, follows an example using bash in a 64-bit Linux PC:

LD_LIBRARY_PATH=''$MATLAB_HOME"/sys/os/glnxa64:''$MATLAB_HOME"//:''$LD_LIBRARY_PATH"

where MATLAB_HOME is the directory where matlab is installed at Please replace ax64 for x86 on a 32-bit PC


Class Documentation

◆ matlab_cells/3

class matlab_cells/3

matlab_cells(+ SizeX, + SizeY, ? Array)

MATLAB will create an empty array of cells of size SizeX and SizeY, and if Array is bound to an atom, store the array in the matlab variable with name Array Corresponds to the MATLAB command cells

◆ matlab_cells/2

class matlab_cells/2

matlab_cells(+ Size, ? Array)

MATLAB will create an empty vector of cells of size Size, and if Array is bound to an atom, store the array in the matlab variable with name Array Corresponds to the MATLAB command cells

◆ matlab_eval_string/1

class matlab_eval_string/1

matlab_eval_string(+ Command)

Holds if matlab evaluated successfully the command Command

◆ matlab_eval_string/2

class matlab_eval_string/2

matlab_eval_string(+ Command, - Answer)

MATLAB will evaluate the command Command and unify Answer with a string reporting the result

◆ matlab_get_variable/2

class matlab_get_variable/2

matlab_get_variable(+ MatVar, - List)

Unify MATLAB variable MatVar with the List List

◆ matlab_initialized_cells/4

class matlab_initialized_cells/4

matlab_initialized_cells(+ SizeX, + SizeY, + List, ? Array)

MATLAB will create an array of cells of size SizeX and SizeY, initialized from the list List, and if Array is bound to an atom, store the array in the matlab variable with name Array

◆ matlab_item/4

class matlab_item/4

matlab_item(+ MatVar, + X, + Y, ? Val)

Read or set MATLAB MatVar( X, Y) from/to Val Use C notation for matrix access (ie, starting from 0)

◆ matlab_item/3

class matlab_item/3

matlab_item(+ MatVar, + X, ? Val)

Read or set MATLAB MatVar( X) from/to Val Use C notation for matrix access (ie, starting from 0)

◆ matlab_item1/4

class matlab_item1/4

matlab_item1(+ MatVar, + X, + Y, ? Val)

Read or set MATLAB MatVar( X, Y) from/to Val Use MATLAB notation for matrix access (ie, starting from 1)

◆ matlab_item1/3

class matlab_item1/3

matlab_item1(+ MatVar, + X, ? Val)

Read or set MATLAB MatVar( X) from/to Val Use MATLAB notation for matrix access (ie, starting from 1)

◆ matlab_matrix/4

class matlab_matrix/4

matlab_matrix(+ SizeX, + SizeY, + List, ? Array)

MATLAB will create an array of floats of size SizeX and SizeY, initialized from the list List, and if Array is bound to an atom, store the array in the matlab variable with name Array

◆ matlab_sequence/3

class matlab_sequence/3

matlab_sequence(+ Min, + Max, ? Array)

MATLAB will create a sequence going from Min to Max, and if Array is bound to an atom, store the sequence in the matlab variable with name Array

◆ matlab_set/4

class matlab_set/4

matlab_set(+ MatVar, + X, + Y, + Value)

Call MATLAB to set element MatVar( X, Y) to Value Notice that this command uses the MATLAB array access convention

◆ matlab_vector/3

class matlab_vector/3

matlab_vector(+ Size, + List, ? Array)

MATLAB will create a vector of floats of size Size, initialized from the list List, and if Array is bound to an atom, store the array in the matlab variable with name Array

◆ matlab_zeros/4

class matlab_zeros/4

matlab_zeros(+ SizeX, + SizeY, + SizeZ, ? Array)

MATLAB will create an array of zeros of size SizeX, SizeY, and SizeZ If Array is bound to an atom, store the array in the matlab variable with name Array Corresponds to the MATLAB command zeros

◆ matlab_zeros/3

class matlab_zeros/3

matlab_zeros(+ SizeX, + SizeY, ? Array)

MATLAB will create an array of zeros of size SizeX and SizeY, and if Array is bound to an atom, store the array in the matlab variable with name Array Corresponds to the MATLAB command zeros

◆ matlab_zeros/2

class matlab_zeros/2

matlab_zeros(+ Size, ? Array)

MATLAB will create a vector of zeros of size Size, and if Array is bound to an atom, store the array in the matlab variable with name Array Corresponds to the MATLAB command zeros