MATBOX_Microstructure_analysis_toolbox
MATBOX_Microstructure_analysis_toolbox copied to clipboard
Error of Euclidean Distance Map Fitting
Thank you for developing and maintaining the nice tool.
I encountered an error message when using the RVE analysis in particle size analysis based on EDMF. That message is as follows:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 위치 1의 인덱스가 유효하지 않습니다. 배열 인덱스는 양의 정수이거나 논리값이어야 합니다. 오류 발생: Function_probability_density/function_calculate_cumulative_fct (155번 라인) cumulative_fct(end,2)=pdi_(end,2); ^^^^^^^^^^^ 오류 발생: Function_probability_density](matlab:matlab.lang.internal.introspective.errorDocCallback (84번 라인) [results.cumulative_fct, results.x50] = function_calculate_cumulative_fct (x, w); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: Function_particle_size_distancemap_Algorithm (25번 라인) [dist_fct, ~] = Function_probability_density(distance_transform_vector,[],density_fct_parameters); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: Function_particle_size_distancemap](matlab:matlab.lang.internal.introspective.errorDocCallback (617번 라인) [distance_transform_subdomain, fitted_diameter_subdomain, ~, ~, ~] = Function_particle_size_distancemap_Algorithm(binary_phase, voxel_size); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: function_microstructure_characterization_segmentedvolume(matlab:matlab.lang.internal.introspective.errorDocCallback (472번 라인) Function_particle_size_distancemap(Phase_microstructure, PROPERTY, OPTIONS, INFO); % Call function ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: microstructure_characterization_GUI/pushbutton_runallcalculations_Callback (3427번 라인) function_microstructure_characterization_segmentedvolume(OPTIONS, INFO, PROPERTY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UIControl Callback을(를) 실행하는 중 오류가 발생했습니다. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I am sorry to contain the Korean words and sentence, which can be translated as follows:
위치 1의 인덱스가 유효하지 않습니다. 배열 인덱스는 양의 정수이거나 논리값이어야 합니다. --> Index at position 1 is invalid. Array indices must be positive integers or logical values. 오류 발생 --> Error 번 라인 --> Line number UIControl Callback을(를) 실행하는 중 오류가 발생했습니다. --> An error occurred while executing UIControl Callback.
Could you check what I did wrong or what I need to do?
Additionally, there was an error message when using the connectivity simulation. Fortunately, I guess that all simulation results are in the folder. Please check it together with the previous one.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 다음 사용 중 오류가 발생함: validateHandleToPrint UI components are not supported. To include UI components, use the 'exportapp' function.
오류 발생: [validate](matlab:matlab.lang.internal.introspective.errorDocCallback('validate', 'C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\graphics\printing\private\validate.m', 17)) ([17번 라인](matlab: opentoline('C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\graphics\printing\private\validate.m',17,0))) pj = validateHandleToPrint(pj); ^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: [print](matlab:matlab.lang.internal.introspective.errorDocCallback('print', 'C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\graphics\printing\print.m', 62)) ([62번 라인](matlab: opentoline('C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\graphics\printing\print.m',62,0))) pj = validate( pj ); ^^^^^^^^^^^^^^ 오류 발생: [saveas](matlab:matlab.lang.internal.introspective.errorDocCallback('saveas', 'C:\Program Files\MATLAB\R2025b\toolbox\matlab\general\saveas.m', 181)) ([181번 라인](matlab: opentoline('C:\Program Files\MATLAB\R2025b\toolbox\matlab\general\saveas.m',181,0))) print( h, name, ['-d' dev{i}] ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: [function_savefig](matlab:matlab.lang.internal.introspective.errorDocCallback('function_savefig', 'C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Miscellaneous\function_savefig.m', 37)) ([37번 라인](matlab: opentoline('C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Miscellaneous\function_savefig.m',37,0))) saveas(Fig,fullpath,'png'); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: [function_summary_onevolume](matlab:matlab.lang.internal.introspective.errorDocCallback('function_summary_onevolume', 'C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\function_summary_onevolume.m', 361)) ([361번 라인](matlab: opentoline('C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\function_summary_onevolume.m',361,0))) function_savefig(Fig, folder, filename, OPTIONS); % Call function ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: [function_microstructure_characterization_segmentedvolume](matlab:matlab.lang.internal.introspective.errorDocCallback('function_microstructure_characterization_segmentedvolume', 'C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\function_microstructure_characterization_segmentedvolume.m', 528)) ([528번 라인](matlab: opentoline('C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\function_microstructure_characterization_segmentedvolume.m',528,0))) function_summary_onevolume(summary_folder, INFO, OPTIONS); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 오류 발생: [microstructure_characterization_GUI/pushbutton_runallcalculations_Callback](matlab:matlab.lang.internal.introspective.errorDocCallback('microstructure_characterization_GUI/pushbutton_runallcalculations_Callback', 'C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\microstructure_characterization_GUI.m', 3427)) ([3427번 라인](matlab: opentoline('C:\Users\admin\Desktop\MATBOX_Microstructure_analysis_toolbox-1.0c\src\Microstructure_characterization\microstructure_characterization_GUI.m',3427,0))) function_microstructure_characterization_segmentedvolume(OPTIONS, INFO, PROPERTY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UIControl Callback을(를) 실행하는 중 오류가 발생했습니다. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dear user. Thank you for reporting the issue. You are using the legacy version of MATBOX 1. The characterization module is being rework (it was the first module release, and it shows its age). I will be able to provide support on this new version when it will be out.
This being said, your error is due to the current subvolume having maybe only 1 or 2 unique values for the distance map, and so the calculation of the probability density function fails as it requires more. I would guess it is because the subvolume is very small. So, in the meantime, I would simply suggest to use less divisions for the RVE calculations for the EDM. If you are further interested in RVE analysis, I would suggest to have a look at this article: https://iopscience.iop.org/article/10.1149/1945-7111/adee50
For the connectivity error, the error appears to be in the summary function. This is completely optional, so you could just comment this line. 1.0c\src\Microstructure_characterization\function_microstructure_characterization_segmentedvolume.m',528,0))) function_summary_onevolume(summary_folder, INFO, OPTIONS); Note that the segmentation module (with the current 2.0 beta version) allows connectivity calculations, you may have a look.
Best, Francois