Code covered by the BSD License  

Highlights from
BattleShip (R)

image thumbnail
from BattleShip (R) by Isaac Noh
Learn and have fun with an old classic.

bsclose
function bsclose
%  	Author: Isaac Noh
%   Copyright 2008-2009 The MathWorks, Inc.
%   Version: 1.1


u1 = guidata(gcbo);
if ~isempty(u1)
    fclose(u1);
    delete(u1);
    clear u1;
end
clear readPort
delete(gcf);

Contact us at files@mathworks.com