3.7. Using Matlab Mathematics Library to Handle Complicated Matrix Operations
The previous discussion concentrated on graphics applications, especially for multidimension plotting in real-time operations between VC++ and Matlab. Another advantage to using the interface between VC++ and Matlab is to handle complicated matrix operations, especially multidimension matrix operations.
The flow chart in Figure 3-22 illustrates the operation principle. Before calling the Matlab matrix functions via the interface, the VC++ program should collect the data from the control system (hardware) and create the data files in ASCII format. After that, the Matlab matrix operations are called by VC++. Matlab first picks up the data from the ...