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

2 ビュー (過去 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 Center および File ExchangeDeploy 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