Problem with specific variables when loading .mat file

1 Ansicht (letzte 30 Tage)
Juan Sepúlveda
Juan Sepúlveda am 5 Nov. 2020
Bearbeitet: Mario Malic am 9 Nov. 2020
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 Kommentare
Juan Sepúlveda
Juan Sepúlveda am 9 Nov. 2020
Yes, I did, actually it loads the variable, but it is just empty, all the other variables are loaded correctly.
Mario Malic
Mario Malic am 9 Nov. 2020
Bearbeitet: Mario Malic am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by