Coulomb 3.4 error Error using image

11 次查看(过去 30 天)
suansuan
suansuan 2024-7-24,5:33
回答: Dheeraj 2024-7-24,5:54
Some errors occurred when I was using the Coulomb 3.4 with Matlab to calculate coulomb stress changes:
Error using image
Complex values are not supported. Specify the color data as numeric or logical values.
Error coulomb_view (line 104)
ac = image(CC,'CDataMapping','scaled','XData',[XGRID(1) XGRID(end)],...
Error coulomb_open (line 79)
coulomb_view(N);
Error coulomb_calc_and_view (line 344)
coulomb_open(get(h,'Value'),kk);
Error coulomb_window>pushbutton_coul_calc_Callback (line 439)
coulomb_calc_and_view;
Error gui_mainfcn (line 95)
feval(varargin{:});
Error coulomb_window (line 17)
gui_mainfcn(gui_State, varargin{:});
An error occurred while calculating the UIControl Callback.
How do I resolve these errors?

采纳的回答

Dheeraj
Dheeraj 2024-7-24,5:54
Hi suansuan,
I understand you sre facing errors related to "image" function of MATLAB when using the Coulomb 3.4 with Matlab to calculate coulomb stress changes.
The error you are experiencing appears to be due to the generation of complex numbers in your calculations, which "image" function cannot handle since it only supports numeric or logical values. If you do not expect to have complex numbers, I would recommend you to double check the formula for each function before passing the parameters to the "image" function.
Thank you.

更多回答(0 个)

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by