MCPcopy Index your code
hub / github.com/Apress/python-for-matlab-development

github.com/Apress/python-for-matlab-development @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
194 symbols 592 edges 97 files 26 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Apress Source Code

This repository accompanies Python for MATLAB Development by Albert Danial (Apress, 2022). The blog series Python is the Ultimate MATLAB Toolbox will contain selections from the book.

Cover image

Download the files as a zip using the green button, or clone the repository to your machine using Git.

py2mat.m and mat2py.m

MATLAB functions to convert arbitrary Python variables to native MATLAB variables and vice versa can be found in the code directory:

  • https://github.com/Apress/python-for-matlab-development/blob/main/code/matlab_py/py2mat.m
  • https://github.com/Apress/python-for-matlab-development/blob/main/code/matlab_py/mat2py.m

df2t.m and t2df.m

Pandas dataframe to and from MATLAB table converters, conceptually similar to py2mat.m and mat2py.m, can be found at Artem Lenskiy's PandasToMatlab project.

MATLAB Expo 2022

I gave a presentation, Python for MATLAB Development, (video, 24 minutes) on May 17 at the MATLAB Expo 2022.

Slides and other files cited in the presentation can be found in https://github.com/Apress/python-for-matlab-development/tree/main/matlab_expo_2022.

Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

Contributions

See the file Contributing.md for more information on how you can contribute to this repository.

Core symbols most depended-on inside this repo

show
called by 18
code/rod_fem/pure_python/make_mesh.py
stiffness_matrix
called by 5
code/rod_fem/pure_python/rod.py
mass_matrix
called by 5
code/rod_fem/pure_python/rod.py
stiffness_matrix
called by 5
pythran/fem/rod.py
mass_matrix
called by 5
pythran/fem/rod.py
MB
called by 4
code/hpc/MB.py
set
called by 4
code/matlab_py/bridge_openpyxl.py
query_results
called by 3
code/IO/postgres_crud.py

Shape

Function 153
Method 32
Class 9

Languages

Python100%

Modules by API surface

code/rod_fem/pure_python/make_mesh.py20 symbols
pythran/fem/FE_model.py10 symbols
code/matlab_py/test_p2m.py10 symbols
pythran/fem/main.py7 symbols
cython/fem/main.py7 symbols
code/geopandas/bridge_geopandas.py7 symbols
pythran/fem/rod.py6 symbols
code/rod_fem/pure_python/rod.py6 symbols
code/matlab_py/bridge_mongo.py6 symbols
code/IO/postgres_crud.py6 symbols
pythran/fem/triangle_utils.py5 symbols
code/basics/timer_decorator.py5 symbols

Datastores touched

(mongodb)Database · 1 repos
purchase_ordersDatabase · 1 repos

For agents

$ claude mcp add python-for-matlab-development \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact