I converted my MATLAB program into a console-based application using the deploytool
in MATLAB. The MATLAB .m
file takes around 2 seconds to execute, but after I converted it into an executable and called the .exe
, it takes 45 seconds to execute which is too long.
I want to integrate the MATLAB program with PHP. Is there another efficient and fast way to do this? In my project, time is really a big factor (not the developing time but the execution time of the application). So is there a method that takes less time?
I saw on the Internet that we can write PHP extensions to call the MATLAB. Is this method fast or the same as calling the .exe
file? Is a MATLAB coder any help for this process? If there is an alternative option, please mention it.
tic
andtoc
to record timing differences. – Nevels