This repository contains the source code for the Blackfynn MATLAB client.
The Blackfynn MATLAB client can be installed using three methods:
- Using the MATLAB Toolbox installer (recommended)
- Compiling and installing toolbox locally
- Working directly from the sourcecode
In order to install the latest release of the MATLAB client,follow the instructions on the Matlab quickstart quide: MATLAB installation guide. This method automatically handles the Java dependencies and adds the client to the MATLAB path.
- Download, or checkout the source code from the source code repository MATLAB client repository
- (Only for download) Extract contents of the downloaded file into a folder
- Modify the [MATLAB_LOC] variable in the setup.sh script to point to your local MATLAB executable.
- Run the setup script:
>> cd setup
>> ./setup.sh
- Open the resulting toolbox installer to install the local toolbox.
Instead of installing the toolbox in MATLAB, you can also just point your MATLAB path to the root of the toolbox folder. This can be useful if you are actively developing functionality for the toolbox. Follow the first 4 steps of the previous section, skip step 5 and instead:
- Add the compiled JAVA libraries to your MATLAB static Java classpath:
>> cd(prefdir)
>> edit javaclasspath.txt
then add this lines (update path) and restart MATLAB:
/.../blackfynn-matlab/java/blackfynio.jar
/.../blackfynn-matlab/java/matlab-websocket-1.4.jar
/.../blackfynn-matlab/java/protobuf-java-3.5.1.jar
- Add the path of the Blackfynn client folder to the MATLAB path or work from the toolbox folder. This can be done in MATLAB as follows:
>> addpath('/Users/preferred-path/blackfynn-matlab');
NOTE: For detailed information about changing the MATLAB java classpath, refer to the MATLAB Documentation.
For more details about the client, please refer to the documentation pages.