How to create a gird on MATLAB?
7 views (last 30 days)
Show older comments

I need to create a grid that looks like the one in the link and I have tried everything I can think of but I cannot figure it out.
The gird is the one from the game Battleship.
Thank you all so much!
0 Comments
Answers (1)
Azzi Abdelmalek
on 8 Mar 2013
Edited: Azzi Abdelmalek
on 8 Mar 2013
f = figure('Position',[ 100 123 785 202]);
dat = cell(10)
columnname = num2cell(1:10)
rowname={'A';'B';'C';'D';'E';'F';'G';'H';'I';'J'}
%columnformat = {'numeric', 'bank', 'logical', {'Fixed' 'Adjustable'}};
%columneditable = [false false true true];
t = uitable('Units','normalized','Position',[0 0 1 1], 'Data', dat,...
'RowName',rowname,'ColumnName', columnname)
set(gcf,'menubar','none')
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!