Coulomb 3.4 error Error using image
11 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Dheeraj
2024 年 7 月 24 日
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!