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

2 Ansichten (letzte 30 Tage)
Given: mwArray mwParams_1(2, 2, mxDOUBLE_CLASS, mxCOMPLEX);
Example: How can I set the real component of element (1,2) to 2.0.

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by