Re: please answer
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