Borrar filtros
Borrar filtros

Coulomb 3.4 error Error using image

11 visualizaciones (últimos 30 días)
suansuan
suansuan el 24 de Jul. de 2024 a las 5:33
Respondida: Dheeraj el 24 de Jul. de 2024 a las 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?
  1 comentario
Avni Agrawal
Avni Agrawal el 24 de Jul. de 2024 a las 5:51
Hi, can you share code inorder to reproduce the issue?

Iniciar sesión para comentar.

Respuesta aceptada

Dheeraj
Dheeraj el 24 de Jul. de 2024 a las 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.

Más respuestas (0)

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by