Problem with specific variables when loading .mat file
2 ビュー (過去 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 件のコメント
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 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!