data cursor mode black figure

조회 수: 7 (최근 30일)
Gianluca Dalle Rive
Gianluca Dalle Rive 2015년 10월 25일
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개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by