Thursday, July 9, 2009

I wanted to run the program with Matlab it is so time consuming but my friend tell me run it with c++, Why?

When I wanted to run the program with Matlab it is so time consuming but my friend tell me do this work with c++,what is diffrent between them that give c++ so faster?Also is delphi or mathematica have this ability?


Thank you.

I wanted to run the program with Matlab it is so time consuming but my friend tell me run it with c++, Why?
The answer to your question is... it depends.





C++ is very fast, esp if you use optimization when you build. But if you don't code your program to be speed optimized then the runtime of your program will not be comparable to Matlab.





As the last person said, it also depends on what you are doing. If you are trying to do some simulation or computer vision software, then you should make sure to use libraries such as STL and BOOST uBLAS. The componenets of these libraries are optimized and will run as fast/faster than similar operations native to matlab.





Whether or not your program will run comparable to matlab will depend on the implementation of your algorithm, and the management of memory. Make sure you create things such as freelists to cut down on dynamic memory allocation time.





Hope this helps.
Reply:from a friend: The last sentence is the most applicable





Seminar: Algorithm Development with MATLAB for C and C++ Programmers





Mathworks engineers demonstrated the speed of Matlab 7.0 computation, which is very comparable to C/C++ in vector, Matrix, scalar and for loop operations. Report It

Reply:WHAT PROGRAMME ARE YOU TRYING TO RUN IN THE FIRST PLACE? it all depends on that
Reply:I don't know what actually you are trying to do but yes, C++ is a very fast language. If you really want to make use of that language than use STL(Standard Template Library) of C++. It has built in optimized and tested algorithms and functions which can cut down your development time and simultaneously increase efficiency.


No comments:

Post a Comment