This blog will be updated regularly with technical articles which should give you a little bit of insight in what we do at Modelit. The articles will focus on Modelit's activities to integrate Matlab with Java to build better desktop applications with rich interfaces and functionality not provided by standard Matlab. And also on the possibilities to integrate Matlab with Javascript to make it possible to use Matlab in Web Applications, for example in combination with frameworks such as React, Dojo and Angular and to use Matlab as a service in environments such as Docker. We love to hear from you so don't hesitate to contact us with comments, questions or topics you'd like to see on this blog.

 

An application in Docker is not of much use if it cannot communicate with the outside world. A typical Docker application consists of a collection of containers, each designed to carry out a specific function, and which can communicate with each other and the outside world through the HTTP protocol. Exchanging data with Matlab docker containers is not possible with standard Matlab nor with the docker tools available since Matlab 2020b. However the Modelit Webserver toolbox makes it possible to execute Matlab code in a Docker container as a microservice.

In this post we show how to run a compiled Matlab application in a Docker container that is able to send and receive messages from other services. This post is a continuation of the Matlab in Docker post in which a Docker container was created in which a simple "Hello world" Matlab function was executed.

In this post we show how to use websockets from the Modelit Webserver toolbox. This feature was recently added to the toolbox and makes it possible to have full-duplex communication between the client and the server. This means that the client as well as the server can send messages to the other, contrary to the conventional HTTP requests where the conversation is always initiated by the client. Websockets are more efficient than HTTP request because they maintain an active connection and do not require the HTTP request/response overhead for each message. This makes it suitable for realtime applications and applications with multiple clients.

Developing in Matlab gives the developer access to high level high level mathematical programming environment. However integrating this code in modern software environment with multiple languages, frameworks and architectures creates enormous complexity. Docker simplifies and accelerates this workflow. Support for Docker was introduced in Matlab 2020b but it is also possible to compile Matlab and use it in a Docker container for earlier Matlab versions. In this post we will make a very simple 'Hello world' in Matlab application and compile it under Unix and run it in a Docker container. The example is made for Matlab 2019b but should work in any other Matlab version.

This post is the first part of the Matlab in Docker posts, in the next post we will make a Matlab application that runs in Docker and that is able to send a receive data to and from other services.

In this post we show how to build an application that uses Javascript for the front-end while the back-end is implemented in Matlab. The front-end and back-end are coupled by using the Modelit Webserver toolbox. This toolbox was recently extended to support websockets which makes it possible to have two-way communication. I.e. the front-end can send messages to the back-end and vice versa.