This project demonstrates how to build a modern web application that exposes a library of MATLAB functions to users via a React frontend and a Python backend. The intent is to show how MATLAB's computational power can be integrated into a user-friendly, interactive web interface, making advanced calculations and charting accessible from any browser.
- MATLAB: Provides the core computational functions and algorithms.
- Python: Acts as the bridge between MATLAB and the web, using the MATLAB Engine API for Python.
- FastAPI: A modern, fast (async) Python web framework for building APIs.
- React: A popular JavaScript library for building responsive, interactive user interfaces.
- Chart.js (via CDN): Lightweight charting library for displaying results visually in the browser.
The application includes both simple and complex calculators, demonstrating parameter passing, result handling, and dynamic chart rendering.
python -m venv venv
venv\Scripts\activate # Windows
pip install fastapi uvicorn
python -m pip install setuptools
cd D:\matlab\extern\engines\python # replace with matlab install directory python setup.py install
npx create-react-app frontend cd frontend npm install axios npm install react-router-dom
venv\Scripts\activate cd backend uvicorn app:app --reload --port 8000
cd frontend npm start