10.3 Generating global matrices