Problem with specific variables when loading .mat file

1 次查看(过去 30 天)
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 个评论
Juan Sepúlveda
Juan Sepúlveda 2020-11-9
Yes, I did, actually it loads the variable, but it is just empty, all the other variables are loaded correctly.
Mario Malic
Mario Malic 2020-11-9
编辑:Mario Malic 2020-11-9
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.

请先登录,再进行评论。

回答(0 个)

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by