Click here to Skip to main content
15,898,789 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
My question is that I can write very complicated MATLAB programs in numerical mathematics and because of speed, some persons tell me that I should write now with c++ for creating softwares requiring speed. Is really MATLAB, a unsuitable software for designing softwares that speed is vital for them? That is, should I forget my good ability for writing MATLAB programs at the expense of speed needed for some softwares? Is it logical and right? What should I do really?
Posted
Updated 21-Dec-13 2:21am
v3
Comments
Richard MacCutchan 21-Dec-13 8:37am    
Ignore them, the chances are that the statements these people are making are generalisations. If you can write Matlab code to solve your problems then stick with it. If you need something that runs extremely fast, then go for C or Assembler. But make sure you actually need that speed.

1 solution

First of all... Matlab is a rapid prototyping engineering tool/environment. You can actually simulate/model a very large number of different types of things. It's essentially a math engine with a whole lot of library functions and a very good script interpreter. Since it's a generalized tool, it's usually meant to help you design things quickly and not really to run fast.

In most cases, writing your own native binary applications will result in running quite a bit faster than the performance of Matlab, but again, that's not what Matlab was designed to do. Usually most people that use Matlab will use it for algorithm design then transfer their designs to either chips (such as FPGA/ASICs) or some native programming language (C/C++) but it all depends on what it is they're designing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900