![]() |
YAP 7.1.0
|
The MathWorks MATLAB is a widely used package for array processing. More...
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:
where MATLAB_HOME
is the directory where matlab is installed at Please replace ax64
for x86
on a 32-bit PC
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
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
class matlab_eval_string/1 |
matlab_eval_string(+ Command)
Holds if matlab evaluated successfully the command Command
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
class matlab_get_variable/2 |
matlab_get_variable(+ MatVar, - List)
Unify MATLAB variable MatVar with the List List
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
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)
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)
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)
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)
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
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
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
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
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
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
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