How Do I make an Array of Arrays
4 views (last 30 days)
Show older comments
I'm trying to create 3x3 of 3x3 tic tac toe boards for a game of tic tac toe squared using the rules found below. So far I've coded everything for a single 3x3 game using a cell array that records 0's and X's. My question is this: How do I make an array of arrays or arrange 9 cell arrays in a 3x3 pattern?
0 Comments
Answers (1)
Sean de Wolski
on 14 Oct 2013
Edited: Sean de Wolski
on 14 Oct 2013
C = cell(3,3)
?
More per comments
The simplest way I can think of to do this is to use cellfun
C = cellfun(@(x)cell(3,3),cell(3,3),'UniformOutput',false)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!