data cursor mode black figure
7 次查看(过去 30 天)
显示 更早的评论
I was using the following code on Matlab 2011a in a 32-bit platform with Windows Vista, and everything was fine:
if true
%code
fig=figure;
pcolor(I1defocus), shading interp
dcm_obj = datacursormode( fig);
set(dcm_obj,'DisplayStyle','datatip',...
'SnapToDataVertex','off','Enable','on')
disp('Click to select the center, then press Enter.')
pause % Wait while the user does this.
img_info = getCursorInfo(dcm_obj);
centerI1defocus(1)=floor(img_info.Position(2));
centerI1defocus(2)=floor(img_info.Position(1));
end
I changed the platform, Windows 10 on a 64 bit architecture (same Matlab version), and when I select a point with cursor, the image becomes black. At the same way if I try to rotate the figure with the options of the window created by matlab, it becomes black too. Can anybody help me?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!