Matlab Pirate • Limited & Real
% Plot the treasure location plot(x(1), x(2), 'ro'); xlabel('Treasure X'); ylabel('Treasure Y'); With the code in hand, Matlabbeard and his crew set sail for the treasure. As they arrived at the designated coordinates, they discovered a chest overflowing with golden coins ( actually, just a large array of ones).
% Use OCR to extract the treasure coordinates coords = ocr(thresh_map, 'Language', 'en'); Matlab Pirate
% Parse the coordinates x = str2double(coords.Text); % Plot the treasure location plot(x(1), x(2), 'ro');