Files demonstrating MATLAB and Python interoperability
These are the supporting files for the "How to Call Python from MATLAB" (https://youtu.be/LHEZqpvE7D0) and "How to Call MATLAB from Python" (https://youtu.be/OocdPu1Tcrg) videos.They show examples of
- 2.5K 次(全部时间)
- 4.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/4/9
Programming-A-Starter-Project-Using-MATLAB-and-Python
A scaffolded project involving pulling and installing a Live Task, then using MATLAB and Python to access and analyze data from a web API.
# Programming: A Starter Project Using MATLAB with PythonLearn how to call Python code, convert data types and units, and use App Designer to build an app to display your results.[
- 9.0 次(过去 30 天)
- -- / 5
- 社区
-
2025/10/8
The functions are designed to communicate between Python Pandas and Matlab
)% Create a Series of random integers using Matlab rand with letters as indexes% and convert to Matlab.pySeries = py.pandas.Series(rand(1,4), pyargs('name', 'real','index', {'a', 'b', 'c
- 669.0 次(全部时间)
- 2.0 次(过去 30 天)
- 4.8 / 5
- 社区
-
2022/5/28
A Matlab utility for plotting correlation matrices, with similar appearance to Seaborn in Python.
A Matlab utility for plotting correlation matrices, with similar appearance to Seaborn in Python.I created this function to allow flexible, customizable plotting of correlation matrices for brain
- 601.0 次(全部时间)
- 2.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2020/1/6
Core_jsonparser: Import and Export JSON files using MATLAB
JSON objects are imported or exported using struct, cell, double, and char.
JSON objects are imported or exported using MATLAB with the help of Python. All that is required, aside from an installation of Python, is to specify the location of the JSON file.Why another JSON
- 641.0 次(全部时间)
- 2.0 次(过去 30 天)
- -- / 5
- 社区
-
2015/11/4
Uniform Manifold Approximation and Projection (UMAP)
An algorithm for manifold learning and dimension reduction.
documentation for the original Python implementation.Connor Meehan developed code in C++, Python, Java, and MATLAB to build this implementation of UMAP for the MATLAB community, with assistance from Jonathan
- 11.6K 次(全部时间)
- 59.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/9/1
Zahhak Optimization Algorithm & Buzjani Tiling Strategy
Official MATLAB and Python source code for the Zahhak Optimization Algorithm (ZOA) and the Buzjani Tiling Strategy (BTS) local refinement mo
ZOA-BTSOfficial MATLAB and Python code for the Zahhak Optimization Algorithm: A Memetic Geometric Buzjani Tiling Strategy for Engineering and IoT with Wireless Sensor Network Validation paperZahhak
- 37.0 次(全部时间)
- 11.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2026/7/12
Examples to show the two options to simulate a Simulink model from Python
returning these to Python makes data marshaling relatively easy.This example has been tested with MATLAB R2022b and Python 3.8. The following MathWorks products are needed for using this
- 131.0 次(全部时间)
- 2.0 次(过去 30 天)
- -- / 5
- 社区
-
2023/3/13
CSINet-Channel-Compression-in-MATLAB-Using-Keras
Co-execute MATLAB and Keras to simulate the effect of channel estimate compression on precoding in a MIMO OFDM channel.
Simulate Channel Compression Effect on Precoding Using MATLAB and Keras with CSINetThis example shows how to co-execute MATLAB® and Python® to simulate the effect of channel estimate compression on
- 68.0 次(全部时间)
- 1.0 次(过去 30 天)
- -- / 5
- 社区
-
2024/9/17
Climate Data Store Toolbox for MATLAB
MATLAB(R) Tools to access the Climate Data Store (https://cds.climate.copernicus.eu/)
)### MATLAB Features UsedThis demonstrates a number of MATLAB features, including:* [Calling Python From MATLAB](https://www.mathworks.com/help/matlab/call-python-libraries.html)* [Toolbox
- 1.4K 次(全部时间)
- 18.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/6/23
An Open Access Virtual Tokamak for Education and Research
ranging from simple educational codes to more advanced, research-grade tools.**VirtualLab** is actively maintained in both **MATLAB** and **Python**.You can also use the MATLAB version directly
- 38.0 次(全部时间)
- 7.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/11/3
Files used in webinar MATLAB for C/C++ Programmers.
Files used in webinar MATLAB for C/C++ Programmers on May 16, 2013. This webinar can be viewed at http://www.mathworks.com/videos/matlab-for-cc-programmers-81699.htmlSpecific topics include
- 2.0K 次(全部时间)
- 2.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2016/9/1
MATLAB Coder Interface for Deep Learning
Use MATLAB Coder to generate C and C++ code for deep learning networks
post-processing along with your trained deep learning networks to deploy complete applications. When used in Simulink with Deep Learning Toolbox and without MATLAB Coder or Simulink Coder, you can accelerate
- 5.7K 次(全部时间)
- 139.0 次(过去 30 天)
- 4.8 / 5
- MathWorks 公司
-
2026/8/11
Helps to compare two Simulink models and finds the difference between the models using image comparison approach.
MATLAB - Pixel Differences: Finds pixel-wise image differences using MATLAB code. * Python - scikit-image Processing: Uses "scikit-image: Image processing in Python" package to find image differences.Note
- 148.0 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2022/3/25
Toolbox for Parameter estimation, Uncertainty and Sensitivity analysis and Confidence Subcontour box estimation
endSimulink-backed models are intentionally not ported (no Python equivalent — call MATLAB directlyvia its Python Engine API instead); everything else targets full parity with the MATLAB toolboxbelow, including
- 683.0 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2026/8/13
Decision Tree and Decision Forest
Decision Tree and Decision Forest for Matlab
### Prerequisites- MATLAB or Octave installed.- C++ compiler compatible with MEX (e.g., `gcc`, `clang`, or MSVC).### CompilingBefore using the package, compile the C++ source files. Run the following commands in
- 5.6K 次(全部时间)
- 3.0 次(过去 30 天)
- 4.5 / 5
- 社区
-
2026/1/8
MATLAB Coder Interface for Visual Studio Code Debugging
Use Visual Studio Code to view and debug C and C++ code, in combination with supported MATLAB and Simulink workflows.
MATLAB Coder Interface for Visual Studio Code DebuggingThe MATLAB® Coder™ Interface for Visual Studio® Code™ Debugging support package allows you to use Visual Studio Code to view and debug C and C++
- 2.0K 次(全部时间)
- 13.0 次(过去 30 天)
- 3.3 / 5
- MathWorks 公司
-
2026/8/11
Simplify a 2D closed contour/polygon to within user-defined boundary offset tolerance
while retaining geometrically and visually salient features.DecimatePoly_demo3: Use DecimatePoly.m to improve the run-time of in-polygon tests at the cost of minor misclassification errors.Get Python
- 1.6K 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2021/8/10
Modern Python package of the Adaptive Filtering Toolbox
pydaptivefilteringA modern Python package of adaptive filtering functions based on the book Adaptive Filtering - Algorithms and Pratical Implementation, Paulo Diniz. Also, based on the MATLAB
- 33.9K 次(全部时间)
- 2.0 次(过去 30 天)
- 4.4 / 5
- 社区
-
2023/9/11
Advanced MATLAB for Scientific Computing
CME 292 (Advanced MATLAB for Scientific Computing), offered by Institute for Computational & Mathematical Engineering, Stanford University
(https://www.mathworks.com/help/matlab/math/partial-differential-equations.html)Documentation - Calling Python from MATLAB (https://www.mathworks.com/help/matlab/call-python-libraries.html)Example - Time Series Forecasting Using Deep
- 1.3K 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2023/6/19
Wind Turbine Fault Detection Using XGBoost & Random Forests
NREL 5MW wind turbine simulink model based on FASTv8 and relevant machine learning algorithms implemented in Python for fault detection
and SVM (Installed libraries first).../Python/Dump_XGBoost_Model.py -- Select features with RF and predict using XGBoost, classifier dumped as .txt
- 1.7K 次(全部时间)
- 6.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2019/4/29
Notepad++ ‘Function-list’ for Matlab
List-view all functions in your '.m' code in [Notepad++] IDE
[Notepad++] (https://notepad-plus-plus.org/) is a small and smart code editor in windows platform. I use [Notepad++] to edit my '.m' code, instead of [Matlab] inner editor. ‘Function-list’ allow U to
- 1.4K 次(全部时间)
- 2.0 次(过去 30 天)
- 4.9 / 5
- 社区
-
2016/2/15
PI controller code in C and Python
A brief demonstration of the capability of Simulink to execute C/C++ and Python code as a part of the numerical model.
You've come to the right place if you wonder how to append your Simulink model with C/C++ and/or Python code. Exactly such a capability is demonstrated here. A code for the PI controller with
- 533.0 次(全部时间)
- 3.0 次(过去 30 天)
- -- / 5
- 社区
-
2020/4/29
Integrating Simulink model with VisualDSP++ Project
This recording shows how to create VisualDSP libraries from Simulink models.
This short recording of about 13 minutes describes the steps to follow when generating code from a Simulink model (MATLAB code could be part of this model using the embedded MATLAB block) and
- 2.0K 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2016/9/1
A Notepad++ function list for MATLAB
Displays Methods and Functions of an m-file in a Tree View Control in the Notepad++ IDE
the editor of Matlab and I use it to1. inspect large text files, e.g. data and log files. A few hundred thousand lines is no problem.2. search (and replace) in m-files; refactor code. It supports
- 877.0 次(全部时间)
- 2.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2017/6/30
Automated manual curation and cell classification of spike-sorted electrophysiology data in MATLAB. Fine-tuned for kilosorted Neuropixels da
[`gettingStarted`](https://github.com/Julie-Fabre/bombcell/tree/main/matlab/gettingStarted.mlx) to see an example workflow and play around with our small toy dataset.- the Python Jupyter notebook
- 83.0 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/2/4
Quadcopter Drone Model in Simscape
Quadcopter with multibody, electrical and thermal models follows a path to deliver a package.
Quadcopter_Drone.prj to get started.Use the "Download" button above to get files compatible with the latest release of MATLAB.You can try this example in MATLAB Online.For earlier MATLAB releases, use "Version History
- 14.7K 次(全部时间)
- 72.0 次(过去 30 天)
- 4.8 / 5
- 社区
-
2026/5/18
Hardware accelerated 3D viewer for MATLAB
A set of demonstrations that show how to install and use an accelerated 3D viewer for MATLAB.
other things, it is made to facilitate inter-operability with other softwares. For instance, it offers scripting facilities using popular languages such as Python, Ruby, Clojure, Beanshell, Javascript
- 2.8K 次(全部时间)
- 1.0 次(过去 30 天)
- 4.8 / 5
- 社区
-
2011/8/13
Comparison of C++ and MATLAB Using OOP Example
Wireless Communications Application Example Used to Compare C++ and MATLAB® Code
This example calculates the bit error rate (BER) of a Bluetooth® or 802.11b communication link interfered with by another 802.11b or Bluetooth transmitter. It uses the new MATLAB® object oriented
- 37.4K 次(全部时间)
- 2.0 次(过去 30 天)
- 4.3 / 5
- 社区
-
2022/5/31
ParaMonte: Parallel Monte Carlo, MCMC, and Machine Learning Library for Bayesian inference in MATLAB, Python, Fortran, C++, C.
platform, see this page: https://www.cdslab.org/paramonte/generic/latest/installation/matlab/#the-fast-wayParaMonte 2 MATLAB library is tested with MATLAB R2023a and beyond. It may, but more likely will not
- 5.8K 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2024/11/18
Heredoc solution for MATLAB allowing easy manipulation of multi-line strings
heredoc/herestring capability to MATLAB by allowing these constructs to be embedded in comments using an analogous syntax to the Unix shell and/or Python. The heredoc strings are then accessed by assigning them to a
- 46.0 次(全部时间)
- 2.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2019/12/15
Example function for creating new DICOM RT file using the Python module rs-utils within Matlab.
Function to create a dicom RT file from binary masks using python rt-utils (github.com/qurit/rt-utils)Inputs:dcmIn Path for DICOM-series associated with the RT-structure DICOM-series
- 10.0 次(全部时间)
- 1.0 次(过去 30 天)
- -- / 5
- 社区
-
2023/3/9
This courseware module addresses working with data: textual data types, numerical data types, data storage, and memory.
scripts](https://www.mathworks.com/products/matlab/live-editor.html) that teach fundamental concepts and basic terminology related to programming computers. This module focuses on concepts and practices related to working with data.## BackgroundYou can use these
- 562.0 次(全部时间)
- 4.0 次(过去 30 天)
- -- / 5
- 社区
-
2025/10/8
Kilobot Swarm Control using Matlab + Arduino
Controls swarm of kilobots to push object through maze. Swarm attracted to brightest light
Object Manipulation Experiment With KilobotsUses an overhead vision system to control a swarm of kilobots to push an object through a maze. Swarm is attracted to the brightest light in the room
- 270.0 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2016/8/12
An overview of programming concepts including arrays, strings, loops, and algorithms with a project.
Python**](https://www.mathworks.com/matlabcentral/fileexchange/116490-programming-a-starter-project-using-matlab-and-python) Use MATLAB, Python, and the OpenWeather API together to implement a weather prediction dashboard | |
- 1.7K 次(全部时间)
- 38.0 次(过去 30 天)
- -- / 5
- 社区
-
2025/10/8
Zaber Device Control Toolbox (deprecated)
Control Zaber motion devices from MATLAB.
Provides classes and enumerations to assist with use of Zaber motion devices. Supports both Zaber protocols and provides both protocol-specific interfaces and a generic interface for
- 1.5K 次(全部时间)
- 6.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2020/1/21
Enables using Python's SymPy CAS in MATLAB
This function utilizes Python's SymPy module to provide symbolic capabilities for those of us who do not have the Symbolic Toolbox or a version of Matlab with Python support at our disposal. The
- 636.0 次(全部时间)
- 2.0 次(过去 30 天)
- -- / 5
- 社区
-
2015/9/21
ndarray2table(arr, dimnames, dimvalues, ascategorical)
Converts a multi-dimensional array into at Matlab table
dataframe in R or Python can be messy (been there). It is easier to bring it into the right format in Matlab first by turning it into a Matlab table. This table can then be exported as a CSV file using
- 98.0 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2018/2/27
C/C++ and Matlab types convertor
Bidirectional conversion between C/C++ type (STL, openCV) and Matlab matrix (compile or run time)
, IplImage, iterator, mex, engineDescription:Consider below scenarios (especially when programming with signal/speech/image processing and scientific computation):1 Dumping C/C++ data into Matlab workspace in
- 7.0K 次(全部时间)
- 2.0 次(过去 30 天)
- 4.2 / 5
- 社区
-
2013/10/29
Urban Sound Classification Using Deep Learning
In the example, I will demonstrate how we do sound classification using deep learning from extracting audio feature (spectrogram).
is: 91% with the confusion matrix as below:Step 4: Deployment (Optional)In this steo, I used MATLAB Comlier SDK to create python library.SoundClassify.m file is the main function for creating the
- 435.0 次(全部时间)
- 3.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2021/7/21
JSONLab: portable, robust JSON/binary-JSON encoder/decoder
A toolbox to encode/decode JSON/UBJSON/MessagePack files in MATLAB/Octave
(with key features marked by *), including the support to BJData Draft-2 specification, new interface functions savejd/loadjd, and options to use MATLAB/Octave built-in jsonencode/jsondecode functions
- 55.1K 次(全部时间)
- 26.0 次(过去 30 天)
- 4.4 / 5
- 社区
-
2024/3/28
Sparse (1-3)D Laplacian on a rectangular grid with exact analytic eigenpairs.
'}); FeaturesSupports Dirichlet, Neumann, and Periodic BCs (including mixed combinations)Computes eigenvalues and eigenvectors analytically using Kronecker structureBuilds the Laplacian matrix directlyCompatible with GNU
- 5.2K 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2025/6/24
MATLAB class wrapper for a C++ implementation of a Quadtree
Efficient implementation of a point-region (PR) quadtree for fast nearest neighbor searches.
. 1-11This Quadtree class seems to beat MATLAB's KDTree class for speed, both in creating the tree and when doing k-nearest neighbor searches.Note: it is possible to extend this code to an Octree.
- 972.0 次(全部时间)
- 1.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2014/1/13
The Genetic Algorithm (GA) : Selection + Crossover + Mutation + Elitism
This is the implementation of the original version of the genetic algorithm
function as well. Of course, it is the discrete (binary) version of the GA algorithm since all the genes can be assigned with either 0 or 1. More information can be found in www.alimirjalili.comI have a
- 8.6K 次(全部时间)
- 7.0 次(过去 30 天)
- 5.0 / 5
- 社区
-
2018/6/11