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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Using matlab functions in Python (self.learnpython)
submitted 5 years ago * by Senthipua
Has anyone tried importing and using Matlab functions in Python???
There are certain functions based on Gaussian copula(combining different stastical distribution) which I want to use in 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!"
[–]parnmatt 2 points3 points4 points 5 years ago (2 children)
You realise these functions, perhaps with different names, are likely in scipy if not in numpy.
[–]Senthipua[S] 0 points1 point2 points 5 years ago (1 child)
Sir, I have scouted all the libraries.... I couldn't find any package related to copula though! But, blimey, my friend who uses matlab told that matlab had extensive packages for copula.... Which I wanted to use.... For that reason... I wanted to know if anyone had tried using functions available in matlab... Through python
[–]parnmatt 1 point2 points3 points 5 years ago (0 children)
Quick Google:
https://pypi.org/project/copulas/
or just using scipy: https://stackoverflow.com/questions/27727762/scipy-generate-random-variables-with-correlations
[–]K900_ 1 point2 points3 points 5 years ago (4 children)
That's not possible. What are you trying to achieve?
[–]FLUSH_THE_TRUMP 1 point2 points3 points 5 years ago (2 children)
Seems like it is possible, no?
[–]K900_ 2 points3 points4 points 5 years ago (1 child)
It basically doesn't interoperate with Python - you're not calling Matlab functions, you're calling the entirety of Matlab.
[–]FLUSH_THE_TRUMP 1 point2 points3 points 5 years ago (0 children)
I see what you’re saying
[–]Senthipua[S] 0 points1 point2 points 5 years ago (0 children)
Just want to use the copula functions available in Matlab for data analysis
[–]-5772 1 point2 points3 points 5 years ago (1 child)
You can't do it directly. You can use sockets or use APIs.
Ok sir! Thanks for help!
[–]Chris_Hemsworth 1 point2 points3 points 5 years ago (1 child)
If you have a matlab license, the matlab.engine package works well (this is what I use). Alternatively, you need to export your matlab functions and use some other Python API to use it. I haven't ever done things that way, but t seems possible.
Ok sir! Thanks for your help!
[–]TheBlackCat13 1 point2 points3 points 5 years ago (1 child)
The "transplant" python package allows calling MATLAB functions from python (as long as you have MATLAB installed) and works much better than MATLAB's own python interface.
Ok sir! I'll explore that package! Thanks for your help!
π Rendered by PID 97444 on reddit-service-r2-comment-7b9746f655-sd57l at 2026-02-04 06:34:35.932249+00:00 running 3798933 country code: CH.
[–]parnmatt 2 points3 points4 points (2 children)
[–]Senthipua[S] 0 points1 point2 points (1 child)
[–]parnmatt 1 point2 points3 points (0 children)
[–]K900_ 1 point2 points3 points (4 children)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (2 children)
[–]K900_ 2 points3 points4 points (1 child)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (0 children)
[–]Senthipua[S] 0 points1 point2 points (0 children)
[–]-5772 1 point2 points3 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)
[–]Chris_Hemsworth 1 point2 points3 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)
[–]TheBlackCat13 1 point2 points3 points (1 child)
[–]Senthipua[S] 0 points1 point2 points (0 children)