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

1 次查看(过去 30 天)
Given: mwArray mwParams_1(2, 2, mxDOUBLE_CLASS, mxCOMPLEX);
Example: How can I set the real component of element (1,2) to 2.0.

采纳的回答

Jeff Rudin
Jeff Rudin 2018-6-19
mwParams_1.Real()(1,2) = 2.0;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deploy to C++ Applications Using mwArray API (C++03) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by