| C++ Math Library Reference | ![]() |
Translating MATLAB Syntax into C++ Syntax
This procedure translates the MATLAB call [U,S,V] = svd(X,0) into a C++ call. The procedure applies to library functions in general.
Note that within a call to a MATLAB C++ Math Library function, an output argument is preceded by &; an input argument is not.
mwArray variables, and assign values to the input variables.
U =
U = svd(&S,&V,
U = svd(&S,&V,X,0);
Note that if you see [] as a MATLAB input argument, you should pass mwArray() as the C++ argument. For example,
B = cplxpair(A,[],dim)
becomes
B = cplxpair(A,mwArray(),dim);
| Constructing a C++ Prototype | The mwArray Class | ![]() |