9.5 Transferring data fromMatlabto the C++ domain 313
Problems
9.5.1. Write a code that defines a 3×3 matrix in the C++ domain, calls
Matlabto compute its inverse, and finally transfers the inverse back to
the C++ domain into a 3×3 matrix.
9.5.2. Write a code that defines two 3×3 matrices in the C++ domain, calls
Matlabto compute their product, and finally transfers the product back
to the C++ domain into a new 3×3 matrix.