Problem with specific variables when loading .mat file
1 view (last 30 days)
Show older comments
In the compiled file (.exe) when I load a cell from a file a with objects in each of the components (from a fitgmdist) it returns empty values in each of the cells, but not in MATLAB.
So, in the compiled file (.exe) when I execute:
load(load_file_,'GMM_model','GMM_samp_ind_cluster','GMM_samples_loads','WiSSv_data',...
'SS_variables_class','GMM_storms','X_std','X_mean','cluster_mode_kernel',...
'fractile_value','fractile_cap','Shortfall_loads','GMM_moment')
The variable GMM_model gives the following values when I execute
minGMM=GMM_model
1x56x3 cell array
minGMM(:,:,1) =
Columns 1 through 4
{0x0 double} {0x0 double} {0x0 double} {0x0 double}
Columns 5 through 8
{0x0 double} {0x0 double} {0x0 double} {0x0 double}
Columns 9 through 12...
But in MATLAB, without compiling, it returns the following:
minGMM=GMM_model
1×56×3 cell array
minGMM(:,:,1) =
Columns 1 through 3
{1×1 gmdistribution} {1×1 gmdistribution} {1×1 gmdistribution}
Columns 4 through 6
{1×1 gmdistribution} {1×1 gmdistribution} {1×1 gmdistribution}
Columns 7 through 9
{1×1 gmdistribution} {1×1 gmdistribution} {1×1 gmdistribution}
Columns 10 through 12
Anyone have an idea about this?
Thank you very much,
Best
Juan
3 Comments
Mario Malic
on 9 Nov 2020
Edited: Mario Malic
on 9 Nov 2020
Can you copy and paste how did you define load_file_(you can hide unnecessary folders), the issue might be that current directories are different and it loads something that doesn't exist. Look for option (I can't find the question I had written this information in) how to run your app with command window on, you can see errors/warnings there which MATLAB would issue through command window.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!