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!