Shared library based MATLAB wrapper #2368
stephen-young
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
My experience has been that calling shared libraries with MATLAB is a very unpleasant experience, not the least because you need to install a complete compiler stack just to call shared libraries (no other programming language I have worked with has this requirement). It is easy to get python installed, and debugging of the python interface is much easier (usually) than the obtuse MATLAB issues with loading shared libraries. And don't get me started on thunk files... But perhaps my MATLAB knowledge is outdated and these constraints no longer apply. If so, I would be happy to consider your solution. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The official MATLAB wrapper uses MATLAB's python interface to use the CoolProp python wrapper. In my work for my Masters and PhD work modelling bubbly flows in MATLAB, I had written a rough wrapper that used MATLAB's interface with C libraries to call CoolProp's shared library functions. I've done some work recently to tidy it up to a point that I think it's worth sharing. You can view the code here: https://github.com/stephen-young/coolprop-mat
Let me know what you think! In my personal experience, using the DLL interface reduced the friction in sharing my MATLAB code with colleagues so I don't think it would hurt to have it has another option for people.
Beta Was this translation helpful? Give feedback.
All reactions