Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Did ever seen an application program programmed with matlab ? (i didn't myself)
matlab is kind of mostly a mathimatical tool differ from c++ which is can be used for Embedded System or Application programms .
C and Matlab are both different platforms with different capabilites. Matlab is used for mathematical processes and calculation by using different tool boxes. U can do the same in C but with huge code.
i mean that the diffrence in speed
if write aprogram in c++to do some function and i write it in matlab to the same function
matlab or c++ will be faster?
It really depends on what you are going to design(program), C++ or C is dumb unless youre really master it, MATLAB has many built-ins(functions) like system analysis, design and simulation, etc... (MATLAB isnt a compiler: thats the difference)
Well it depends on what you are doing...
C++ excellent for developing stand alone graphical applications...
MATLAB excellent for implementing mathematical modelling in various algorithms/techniques etc...
Matlab allows you to use simulink and can acquire real world information and helps you process that information with a large library of functions. it is expensive. it also allows you to generate a c++ wrapper for use in stand alone apps. it is a language suited more for mathematics than for programming. depending on what modules you have you can compile code for certain DSPs and do all manner of analysis that in C you would have to implement yourself (and then somehow test to know your doing it right with no errors).
C++ is a variation of the C language. Compared to basic C is not an easy language. however it's a fast one and a very powerful language. unlike other languages it doesn't check many things for you as it assumes that what you want to do is what you said to do.
A brief Comparison
C++
Good Points
-good general purpose application language
-direct access to system at hardware level
-runs on virtually any control or target platform
-direct control over all aspects of software modification and enhancements
Bad Points
-enormous learning curve for all but the most trivial projects
-notorious security issues (memory leaks, garbage collection problems, etc.)
-limited capabilities for RT and simultaneous event processing (which is a particular consideration in a closed feed back loop system)
-requires an intimate knowledge of the hardware involved
MATLAB
Good Points
-Has packages/libraries specifically designed for general control applications
-Has built in contructs to handle low level addressing of hardware.
-English language like commands
Bad Points
-While "easier" to learn than C++, you can still anticipate a steep learning curve .if your applications do not fall within the capabilties of the of the control, signal processing or other prewritten software , you may need to interface with custom code that you may not have the ability to understand or write.
-platform versions are limited to the most popular commercial OSs
Thus both of different requirements and functionalities. Matlab helps in as a mathematical tool. This is rather an understatement because there are many things an engineering an engineer can sort out using Matlab. But then all these are theoretical stuff and not realtime. C++ is programming language. very powerful and can help you anything you want as long as you have a processor and its surrounding "life support systems". This means you can also do what you could do with Matlab but then you have to scratch your head a bit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.