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

조회 수: 4 (최근 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