Using the C++ Math Library    

Translating from MATLAB to C++


Differences Between C++ and MATLAB

Most MATLAB expressions translate into C++ with no effort -- very often the MATLAB and C++ are identical. There are some differences in syntax, of course, but it is important to realize that the C++ interface is substantially the same as the M-file interface.

MATLAB and C++ syntax are identical in the following four areas:

The differences between C++ and MATLAB are discussed in detail below. More space is devoted to differences than similarities, not because there are more differences, but because the differences are more likely to cause confusion.

Programming in C++ differs from programming in MATLAB in five important areas:


 Example - Using load() and save() (ex7.cpp) Syntax