Run Javascript from MATLAB

I have the bfx.js file (attached). I need to run this Javascript like:
bfx.get_trades('btcusd');
bfx.get_symbols();
Is it possible to do it in MATLAB?

 Accepted Answer

Jacob Halbrooks
Jacob Halbrooks on 26 Dec 2013
You cannot directly execute a JavaScript file in MATLAB. However, if you can set up a web server with a page that executes your JavaScript, you can use URLREAD from MATLAB to run it and read the output.

2 Comments

Can you as well modify the Java sccript from MATLAB; os is it merly for reading, I mean is there a writting function?
Is there a way to interact with JavaScript function from MATLAB?

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!