nodejs-in-matlab

Version 1.0.0 (3.77 KB) by Anish K
Call Node.js from within MATLAB
144 Downloads
Updated 1 Oct 2018

Convenience function to setup Node.js in MATLAB.

Downloads (if needed) and adds Node.js to PATH in MATLAB.

Once setup, you can use MATLAB's "system" command to seamlessly execute Node.js programs from within MATLAB and marshall results back into MATLAB using "jsondecode".

Usage

>> setupNodejs
v8.12.0
Node.js added to system path.

>> !node -v
v8.12.0

>> !node -e 'console.log(2+2)'
4

Cite As

Anish K (2024). nodejs-in-matlab (https://github.com/anishkny/nodejs-in-matlab), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Use System Objects in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

examples/basic

examples/npx

examples/puppeteer

examples/uuid

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.