GenerateJavaScriptU​singMATLABCoder

Create JavaScript and WebAssembly apps and libraries from MATLAB projects using MATLAB Coder.

1.9K Downloads

Updated Mon, 06 Dec 2021 14:21:02 +0000

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Generate JavaScript using MATLAB Coder Add-On in combination with the Emscripten compiler converts your MATLAB functions into high-performance, client-side JavaScript/WebAssembly apps and libraries. Generated code can be compiled, embedded, and run in any modern browser; including, Google Chrome, Mozilla FireFox, Microsoft Edge, and Apple Safari. The generated code can also be run in standalone JavaScript engines, such as NodeJS.
Sample projects can be seen at these links:
If you would like your project showcased here, please reach out to me. Thank you.

Cite As

Geoff McVittie (2023). GenerateJavaScriptUsingMATLABCoder (https://www.mathworks.com/matlabcentral/fileexchange/69973-generatejavascriptusingmatlabcoder), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with R2021a and later releases
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Image Sudoku Solver on Browser

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
3.1.1

Updated Input element, can be used to capture text and checkboxes from <input> elements in HTML. Fix typos in Getting Started doc.

3.1.0

Modified callback registration for general callback support and removal of macros, updated documentation, added VirtualSensors, fixed console.log printing issue, and modified cpp/hpp source.

3.0.2

* Fixed Linux/OSX toolchain to resolve reported issue.
* Fixed doc issues.
If there are any issues, please report them in the discussions. Thank you.

3.0.1

Fixed issue with Linux version of the toolchain.

3.0.0

Now supports Emscripten SDK 2.0.NN. Updates to integrate with MATLAB Coder App and codegen function.

2.0.2

Fixed bug to support the latest version of the Emscripten SDK with the "upstream" configuration. Please install the latest version of the Emscripten SDK to use this update.

2.0.1

Fix to file P-coding.

2.0.0

New release with ability to generate apps.

1.0.6

Fix to the missing Toolchain issue.

1.0.5

Fixed issue that limited function name size.

1.0.4

Installation updated to support the Fastcomp update to Emscripten SDK.

1.0.3

Added checks on setup and fix typos in examples.

1.0.2

Update to title to add spaces for improved web search

1.0.1

Fix to icon.

1.0