How can I set the real or imaginary component of a single element of a complex mwArray?

1 visualización (últimos 30 días)
Given: mwArray mwParams_1(2, 2, mxDOUBLE_CLASS, mxCOMPLEX);
Example: How can I set the real component of element (1,2) to 2.0.

Respuesta aceptada

Jeff Rudin
Jeff Rudin el 19 de Jun. de 2018
mwParams_1.Real()(1,2) = 2.0;

Más respuestas (0)

Categorías

Más información sobre Deploy to C++ Applications Using mwArray API (C++03) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by