Azzera filtri
Azzera filtri

Coulomb 3.4 error Error using image

5 visualizzazioni (ultimi 30 giorni)
suansuan
suansuan il 24 Lug 2024
Risposto: Dheeraj il 24 Lug 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?

Risposta accettata

Dheeraj
Dheeraj il 24 Lug 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.

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by