Clear Filters
Clear Filters

Read gmdistribution from .mat file in compiled application

1 view (last 30 days)
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

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!