Question
Why is Python (using NumPy) being significantly faster than MATLAB for my case? I am making a script in both MATLAB and Python which reads
Why is Python (using NumPy) being significantly faster than MATLAB for my case? I am making a script in both MATLAB and Python which reads an input mesh file (.inp) of about 2000~5000 elements of arrays (1 element ID and 8 nodes ID per line) to create a 3D file of the input (.stl format)
but for the same result, Python is currently about 10~20times faster than MATLAB, I've heard that MATLAB and Python speeds do not differ much for most cases, but in my case
python is significantly faster even though I've tried to optimize MATLAB codes (From loops to vectorization and etc)
Why do you think this may happen?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started