Continue to Site

Welcome to EDAboard.com

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.

What's the difference between programing in matlab and c++?

Status
Not open for further replies.

fatma1000

Banned
Full Member level 2
Joined
Apr 30, 2006
Messages
147
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
eygpt
Activity points
0
i want to know what the difference between programing in matlab and c++?

what the the best of them?

regards
 

Re: please answer

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 .
 

Re: please answer

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.
 

please answer

What's nice about Matlab or Octave, is that you interface your Matlab code with C-Code.
 

Re: please answer

after having a working experience with both i would say it depends on your application and the process or the same
 

Re: please answer

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?
 

Re: please answer

c++ would b faster as it is not loading much libraries as compared to matlab
 

please answer

it sven depends on your "some function". if u r woeking on high resolution picture images c may become slower compared to matlab
 

Re: please answer

Hi,

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)
 

please answer

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...
 

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
 

Re: please answer

With c++ you can produce stand alone softwares

With matlab you can use c++ codes

Matlab has very useful builtin functions

Matlab has some interesting tools such as simulink

Matlab is a matrix based programming language(Matrix labouratory)

........
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top