Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions