Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

52North/matlab-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

This project is no longer maintained and will not receive any further updates. If you plan to continue using it, please be aware that future security issues will not be addressed.

Matlab Connector

This project is not part of the 52°North managed code base.

The matlab-connector library enables function execution on a remote MATLAB instance.

JSON is used as a platform and language independent.

Server setup

Usage: java -jar matlab-connector-2.0-SNAPSHOT-with-dependencies.jar [options]
  Options:
    -b, --base-dir
       The base directory.
       Default: /home/auti/Source/matlab-connector
        --cert-file
       Path to SSL server certificate (incl. chain) in PEM format.
        --clientauth
       Path to a PEM file containing all trusted (client) certificates.
        --debug
       Show debug output.
       Default: false
    -h, --help
       Display this help message.
        --key-file
       Path to SSL server key in PEM format.
        --keystore-config
       Path to the SSL config file.
    -p, --port
       The port to listen on.
       Default: 7000
    -t, --threads
       The amount of server threads.
       Default: 5
        --trust-file
       Path to a PEM file containing all trusted (client) certificates.

Using the Java client

Evaluating a MATLAB function

To execute a function in Java. Host can be localhost, or remote.

// Create client instance
MLClient client = new MLClient();

// Build request
MLRequest request = new MLRequest("do_a_sum");
request.addParameter(new MLScalar(2));
request.addParameter(new MLScalar(2));

// Send request
MLResult result = client.sendRequest("localhost", 44444, request);

// Print result
System.out.println(result.toString());

Build

mvn clean install

About

Matlab function execution on (pooled) remote Matlab instances.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •