VTS MATLAB - VirtualPhotonics/VTS GitHub Wiki

VTS MATLAB Interoperability

Getting Started with the VTS in MATLAB

Prerequisites:

.NET 8.0 - download here
MATLAB (R2023a and above)

Notes:

  • Accessing the VTS libraries from MATLAB works in Windows, Mac and Linux. Prior to MATLAB version 2023a it only worked in the Windows version of MATLAB (See MathWorks)

  • If you do not have the latest version of MATLAB and your version is prior to R2022b, download an older release of the MATLAB package (Version 8.0) and use .NET Framework 4.8 - download here
    The minimum MATLAB version for version 8.0 is R2019b and it will only work on Windows.

Installation:

Download the latest version of the VTS MATLAB Package and extract it to a folder. Go into MATLAB and set this folder to the current folder.

On Linux: Make sure the structures folder has execute permissions using the Linux command "chmod 755 vts/structures".

To access the MATLAB documentation, go to the Home tab, click on "Help", then "Documentation" MATLAB Documentation

Click "Supplemental Software" on the left hand panel MATLAB Documentation Click "VTS Toolbox" on the left hand panel MATLAB Documentation

Click on "Getting Started with the VTS Toolbox" for information about accessing the VTS library from MATLAB. There are also links for "Functions", that describes the VTS functions that have MATLAB interoperability, and "VTS Examples" that provides demos of VTS Solvers and VTS Monte Carlo calls. Getting-Started-MATLAB_VTS-Examples

Solver Demo

Getting-Started-MATLAB_VTS-Examples-Solver-Demo

Monte Carlo Demo

Getting-Started-MATLAB_VTS-Examples-Monte-Carlo-Demo

⚠️ **GitHub.com Fallback** ⚠️