Up: Component summary Component

MatlabEvaluate

Executes a Matlab script that generates a matrix from the given data. Table inputs are read into cell variables of the same name and then the given script is called. Table and var inputs will have defaults of NA but they will point to the input files/folders if bound to somewhere. The script should produce a struct called table that will be saved to the output port. The table must contain fields: cell string columnheads and cell string matrix or numerical matrix data

This component may also generate a LaTeX document. This is especially useful if you want to plot some figures. Output folder of the document is document.dir and the actual text can be written by assigning it to document.out that is a character vector. The unique name of the REvaluate component instance is available as instance.name.

Arbitrary outputs can be stored into optOut1, optOut2, and optOut3 strings and they will be written into the corresponding output files. You may also write directly into these files (just like in standard Anduril components) but then you should remove the corresponding variable declarations (for example clear('optOut1')) in order to prevent the host from overwriting your output.

Version 1.0
Bundle tools
Categories External Latex Network Control
Specialties generic
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Requires Matlab
Source files component.xml matlabevaluate.m
Usage Example with default values

Type parameters (generics)

Inputs

Name Type Mandatory Description
script MatlabSource Mandatory Data transformation
table1 CSV Optional Data matrix 1 (csvcell table1)
table2 CSV Optional Data matrix 2 (csvcell table2)
table3 CSV Optional Data matrix 3 (csvcell table3)
table4 CSV Optional Data matrix 4 (csvcell table4)
table5 CSV Optional Data matrix 5 (csvcell table5)
var1 INa (generic) Optional Generic input that may be used for folders and binaries
var2 INb (generic) Optional Generic input that may be used for folders and binaries
var3 INc (generic) Optional Generic input that may be used for folders and binaries
var4 INd (generic) Optional Generic input that may be used for folders and binaries
var5 INe (generic) Optional Generic input that may be used for folders and binaries
var6 INf (generic) Optional Generic input that may be used for folders and binaries
var7 INg (generic) Optional Generic input that may be used for folders and binaries
var8 INh (generic) Optional Generic input that may be used for folders and binaries
var9 INi (generic) Optional Generic input that may be used for folders and binaries

Outputs

Name Type Description
table CSV Result matrix
optOut1 OUTa (generic) An optional output that can be used for custom data types. By default this file is empty.
optOut2 OUTb (generic) An optional output that can be used for custom data types. By default this file is empty.
optOut3 OUTc (generic) An optional output that can be used for custom data types. By default this file is empty.
document Latex An optional output document, which may include some figures.

Parameters

Name Type Default Description
param1 string "" Value of this parameter will be assigned to param1 variable
param10 string "" Value of this parameter will be assigned to param10 variable
param2 string "" Value of this parameter will be assigned to param2 variable
param3 string "" Value of this parameter will be assigned to param3 variable
param4 string "" Value of this parameter will be assigned to param4 variable
param5 string "" Value of this parameter will be assigned to param5 variable
param6 string "" Value of this parameter will be assigned to param6 variable
param7 string "" Value of this parameter will be assigned to param7 variable
param8 string "" Value of this parameter will be assigned to param8 variable
param9 string "" Value of this parameter will be assigned to param9 variable

Test cases

Test case Parameters IN
script
IN
table1
IN
table2
IN
table3
IN
table4
IN
table5
IN
var1
IN
var2
IN
var3
IN
var4
IN
var5
IN
var6
IN
var7
IN
var8
IN
var9
OUT
table
OUT
optOut1
OUT
optOut2
OUT
optOut3
OUT
document
case1 properties script table1 table2 (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) table optOut1 optOut2 optOut3 document

metadata.timeout=60

case2_failure properties script table1 table2 (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (expecting failure) (expecting failure) (expecting failure) (expecting failure) (expecting failure)

metadata.timeout=60

case3_document properties script (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) table optOut1 optOut2 optOut3 document

param1 = v1,
param3 = v3 has many words,
param4 = NA,
param5 = v5,
metadata.timeout=60

case4_figure properties script table1 (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) table optOut1 optOut2 optOut3 document

metadata.timeout=60

case5_folder properties script (missing) (missing) (missing) (missing) (missing) var1 (missing) (missing) (missing) (missing) (missing) (missing) (missing) (missing) table (missing) (missing) (missing) (missing)

metadata.timeout=60


Generated 2019-02-08 07:42:18 by Anduril 2.0.0