Coulomb 3.4 error Error using image
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
suansuan
el 24 de Jul. de 2024
Respondida: Dheeraj
el 24 de Jul. de 2024
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
Respuesta aceptada
Dheeraj
el 24 de Jul. de 2024
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 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!