Why does mxCreateDoubleMatrix() returns NULL?

1 回表示 (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2020 年 7 月 16 日
編集済み: MathWorks Support Team 2025 年 1 月 31 日
I am using the following MATLAB External Interface API, to create a double matrix
>> mxCreateDoubleMatrix(3,3,mxREAL)
It returns NULL, why?

採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 1 月 25 日
編集済み: MathWorks Support Team 2025 年 1 月 31 日
Call the following API before using 'mxCreateDoubleMatrix'
>> mclInitializeApplication
This sets up the application state shared by all MATLAB Runtime instances created in the current process. For more information on this API, you can view the release-specific documentation by executing the following command in the MATLAB R2020a command window:
>> web(fullfile(docroot, 'compiler_sdk/cxx/mclinitializeapplication.html'))
For further information regarding the current release, please follow the link below:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by