Read gmdistribution from .mat file in compiled application

1 次查看(过去 30 天)
I am having trouble using a distributed application to read a 2x1 cell array of gmdistriubition class objects from a .mat file. The code works without a problem from the command window but when the script is compiled, the file contents are not read correctly.
The file path is correct as the file is read but it returns a 2x1 cell array of [] - the gmdistribution objects are not being ready correctly. The program then fails when it tries to access one of the cell contents.
From what i have read, it seems i may need to add the class definitions into the distributed CTF (as per this solution : http://uk.mathworks.com/matlabcentral/answers/100599-why-do-i-receive-an-error-when-executing-a-standalone-application-that-loads-a-dataset-object-and-is) but i'm not sure how this is done and following the example did not work for me.
Can anyone help? thanks, james

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by