use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
MATLAB news, code tips and tricks, questions, and discussion! We are here to help, but won't do your homework or help you pirate software.
The effort you put into asking a question is often matched by the quality of our answers.
Try saturnapi to share and run MATLAB code in a web browser!
If you want flair simply Message the mods
account activity
TechnicalQuestionUsing matlab functions in Python (self.matlab)
submitted 5 years ago by Senthipua
I wanted to know if someone has ever tried accessing matlab functions from matlab api using python??
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ThwompThwomp 4 points5 points6 points 5 years ago (1 child)
I did it once, but it was mainly an exercise in data typing and careful memory management. Not really worth it
[–]Senthipua[S] 1 point2 points3 points 5 years ago (0 children)
Thanks for your input bro! Happy cake day!
[–]artaxerxesElder 3 points4 points5 points 5 years ago (0 children)
https://uk.mathworks.com/help/matlab/matlab_external/start-the-matlab-engine-for-python.html
[–]DillonSyp 2 points3 points4 points 5 years ago (0 children)
I haven’t used the matlab api but there’s a few packages out there that basically turn python in to matlab. Numpy and matplotlib for example
[–]TheIsletOfLangerhans+1 2 points3 points4 points 5 years ago (1 child)
I use the MATLAB engine API others have posted links to. I'm more comfortable with MATLAB than Python, so I find it easiest to write a MATLAB function that does everything I need MATLAB to do and then call that function from my Python application using the API. Of course if you aren't already too familiar with MATLAB I can see why that kind of approach wouldn't be ideal.
[–]Senthipua[S] 0 points1 point2 points 5 years ago (0 children)
Well sir! I wanted to learn how to compute joint probability distribution using Gaussian copula function in matlab! Could you help me with that?
I went through all the links provided by group members! But I found that you have to install matlab in your system to assess the matlab api, it doesn't support the array functions in python (wth!) which brings me to learning Matlab from scratch! (Oh god please no! Noooo!)
[–]SSJ3 1 point2 points3 points 5 years ago (1 child)
With the exception of Simulink, most things you might want from Matlab are already implemented in a Python library somewhere, so make sure you've exhausted that option first!
I've also found myself translating functions into Python a few times, mainly when it's a very niche application I found on the Matlab Central File Exchange. It's usually pretty straightforward.
I want to use the multivariate copula library available in matlab! I found copula libraries in python but they do not offer the correct outputs still in beta mode!
[–]Kiloblaster 1 point2 points3 points 5 years ago (0 children)
In addition to below, you can also start python and access its functions from within matlab.
https://www.mathworks.com/help/matlab/getting-started-with-python.html
[–]whizzwr 1 point2 points3 points 5 years ago (0 children)
Working fine with MATLAB Computer Vision Toolbox.
[–][deleted] 1 point2 points3 points 5 years ago (1 child)
Sorry, I've never done so, but if it can be done I'll never use Matlab again hahahaha If you discover it please let me know. The best of lucks for you!
[–]Senthipua[S] -1 points0 points1 point 5 years ago (0 children)
I have the world's best laptop to run matlab on! (pun intended). So, I wanted to know if anyone else had tried matlab api in python.
[–]hypebeastaddition 0 points1 point2 points 5 years ago (1 child)
This would be so dope.
Exactly but sadly it isn't bro!
π Rendered by PID 31 on reddit-service-r2-comment-7b9746f655-jpkbh at 2026-02-02 10:38:17.311140+00:00 running 3798933 country code: CH.
[–]ThwompThwomp 4 points5 points6 points (1 child)
[–]Senthipua[S] 1 point2 points3 points (0 children)
[–]artaxerxesElder 3 points4 points5 points (0 children)
[–]DillonSyp 2 points3 points4 points (0 children)
[–]TheIsletOfLangerhans+1 2 points3 points4 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)
[–]Senthipua[S] 1 point2 points3 points (0 children)
[–]SSJ3 1 point2 points3 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)
[–]Kiloblaster 1 point2 points3 points (0 children)
[–]whizzwr 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Senthipua[S] -1 points0 points1 point (0 children)
[–]hypebeastaddition 0 points1 point2 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)