'How do I create a javascript app that sends data to matlab?

I have a project I will be starting where I need to create an application that pulls data from a mongoDB database and then uses the graphing functionality in matlab.

Basically I would like to use the native mongoDB query functionality to be able to get small amounts of data and then pass that over to matlab to graph. Ideally I could do this with a GUI that would be able to ask which collection to pull from, etc and then automatically passes the data over to matlab when asked. I already have a matlab app that graphs what I need I would just need to pass it inputs.

I'm new to programming entirely, so I was pointed in the direction to use React to create a standalone local app in javascript (which also works with mongoDB). I've run into a problem where it seems like I cannot call matlab from javascript, so I would have to use a bridge language or something.

Does anyone have a better starting point for this? Completely open to switching languages if that's the better call here. Or maybe I have it backwards and should be writing scripts in C++ that matlab can call? Just not sure where to start...

Thanks so much for your help!



Solution 1:[1]

You can try Python Flask, this is the best option in my opinion.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 abodjo