2004. — 335 p.
Third Edition
At the time this book is written, most students and engineers know the basics of MatLAB and C/C++ programming. Their projects are often supported by C/C++ and/or MatLAB, but not many of them know how to use the C/C++ programming with MatLAB support to handle their problems. MatLAB is one of most powerful mathematical softwares used to solve student, engi- neering, and scienti_c problems, and C/C++ programming is one of the most used programming languages in the world with numerous applications. Therefore, the combination of both tools, C/C++ and MatLAB, has the potential to become one of the best tools for solving technical problems.
MatLAB provides a toolbox MatLAB Compiler to handle the works between MatLAB and C/C++. This book implements the combination of C/C++ and MatLAB to solve the problems. The features of this book are designed to handle the following projects:
Common mathematical libraries were created from MatLAB M-_les to use in C/C++ functions.
The MatLAB workspace is called to perform particular tasks in C/C++ functions.
A C function is called into the MatLAB workspace by writing a MEX-function.
Stand-alone applications were created to use in the target machine which doesn't have the MatLAB software.
The book contains all C/C++ programming codes in all chapters, that quickly help users solve their problems. This book tries to support C/C++ programmers, especially students and engi- neers who use C/C++ and MatLAB to develop applications and solutions for their projects and designs.
Part I: Setting up MatLAB and C++ CompilersOpening a C++ File in Microsoft Visual C++ 6.0.
Setting Up a Microsoft Visual C++ 6.0 Project with MatLAB Compiler
Opening a C++ File in Microsoft Visual C++ .Net
Setting Up a Microsoft Visual C++ .Net Project with MatLAB Compiler
Part II: Creating and Using C/C++ Shared Libraries to Solve Mathematical ProblemsGenerating C and C++ Shared Libraries from MatLAB M-Files for Using in Microsoft Visual C++ .Net
Transfer of Values between C/C++ double, mxArray, and mwArray
Matrix Computations
Linear System Equations
Ordinary Differential Equations
Integration
Curve Fitting and Interpolations
Roots of Equations
Fast Fourier Transform
Eigenvalues and Eigenvectors
Random Numbers
Calling MatLAB Workspace in C/C++ Functions
MEX-Files, Calling a C Function in MatLAB Workspace
Stand-Alone Applications