Run Javascript from MATLAB

52 views (last 30 days)
Goryn
Goryn on 23 Dec 2013
Commented: Royi Avital on 30 Sep 2017
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
Sarahi RN
Sarahi RN on 1 Mar 2017
Can you as well modify the Java sccript from MATLAB; os is it merly for reading, I mean is there a writting function?
Royi Avital
Royi Avital on 30 Sep 2017
Is there a way to interact with JavaScript function from MATLAB?

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!