i.e. each field of your previous struct now gets its own array.
This is now the point where otimizations start making the code look uglier and harder to maintain! Still, you should follow spillers advice. When you make the map array (or without structures, multiple arrays) global, you should consider using a naming scheme like e.g. this: every global variable starts with "g_". When you don't pass the big array(s) to functions, and the arrays don't contain structs, this will be 2 big optimizations.
RWTH - Mindstorms NXT Toolbox for MATLAB
state of the art in nxt remote control programming http://www.mindstorms.rwth-aachen.de MotorControl now also in Python, .net, and Mathematica