The interpretation of the error
7 次查看(过去 30 天)
显示 更早的评论
I recieve this error but the code keeps running:
Invalid or deleted object.
Error in matlab.graphics.controls.internal.ToolTipMixin/showToolTip
Error in matlab.graphics.controls.ToolbarController/showToolTip
Error in matlab.graphics.controls.ToolbarController>@(e,d)obj.showToolTip(btn)
Error in print (line 36)
drawnow; % give changes a chance to be processed
Error in saveas (line 181)
print( h, name, ['-d' dev{i}] )
Error in AllCesCalculator_20200615>sion_finder (line 334)
saveas(number_of_figures(i),fullfile(sion_path,[ number_of_figures(i).Name '.tif']));
Error in sion_AllCesCalculator_20200615>TUpdaterForsion (line 74)
=sion_finder(X,Y,more_smooth_gaussian,less_smooth_gaussian,thresh,ce_name,r_equivalent_pxl,sion_path);
Error in sion_AllCesCalculator_20200615 (line 52)
TUpdaterForsion(T,p_length,nfiles,save_image_path,sion_path,fullFileNameofxy,fullFileNameofsizexy,images_loc,ce_names_c)
Any idea?
1 个评论
回答(1 个)
Vinai Datta Thatiparthi
2020-9-15
Hey Zeynab,
Since you haven't shared the code with us, I guess the main reason why you're getting the error is because of a referencing issue when trying to modify something incorrectly within your code. You're probably trying to access or delete something that's already deleted.
A solution to this could be to save the handles (depending on your application) and then use the 'hold on' functionality to preserve the handle.
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!