executors.MatlabExecutor

MatlabExecutor(
    wrapper_name,
    input_path='temp_in.csv',
    output_path='temp_out.csv',
)

THE MATLAB TRANSLATOR: A specialized version of the CLIExecutor designed specifically for MATLAB. It automatically handles the complex terminal syntax required to run MATLAB in a headless “batch” mode (without opening the graphical interface).

The user must provide a MATLAB wrapper function that accepts two string arguments: the input CSV path and the output CSV path.

Example Usage

If the user has a file named ‘matlab_wrapper.m’

executor = MatlabExecutor(wrapper_name=‘matlab_wrapper’)