MATLAB: Is the algorithm (detect corners of checker board) fail

calibration of cameraComputer Vision Toolbox

I=checkerboard(80,5,5);
I=I>0.5;
[imagePoints,boardSize] = detectCheckerboardPoints(I);
figure;
subplot(1,2,1);
imshow(I);hold on;
plot(imagePoints,'r+');
title('detectCheckerboardPoints method');
subplot(1,2,2);
plot(imagePoints,'r+');

Best Answer

Do:
plot(imagePoints(:,1),imagePoints(:,2),'r+');