2004, -335 pp.
Third Edition
На первой странице книги вложен архив с кодами. Для извлечения нужна старая версия Acrobat или Reader (например, 6)
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++ Compilers Introduction
Opening 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 Problems Generating 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