Code covered by the BSD License
-
atboard
Author: Isaac Noh
-
atgridpt(position,row,col)
Author: Isaac Noh
-
locboard
Author: Isaac Noh
-
battleship
Author: Isaac Noh
-
bsclose
Author: Isaac Noh
-
bsconnect(hObject,eventdata,l...
Author: Isaac Noh
-
gameOver(u2)
Author: Isaac Noh
-
genLocation(h)
Author: Isaac Noh
-
locgridpt(ax)
Author: Isaac Noh
-
readPort(u2,DatagramReceived,...
Author: Isaac Noh
-
ship(pos,type,orientation,ax)
Author: Isaac Noh
-
soundOff(hObject,eventdata)
Author: Isaac Noh
-
speak(varargin)
SPEAK using Excel(R) to speak entered texts or numbers
-
sunk(varargin)
Author: Isaac Noh
-
View all files
from
BattleShip (R)
by Isaac Noh
Learn and have fun with an old classic.
|
| soundOff(hObject,eventdata)
|
function soundOff(hObject,eventdata)
% Author: Isaac Noh
% Copyright 2008-2009 The MathWorks, Inc.
% Version: 1.1
val = get(hObject,'Checked');
if strcmp(val,'on')
% Set marker to turn off sound
set(hObject,'Checked','off');
else
% Set marker to turn sound back on
set(hObject,'Checked','on')
end
|
|
Contact us at files@mathworks.com