Generate large matrix, then store it in project memory instead of flash

how do I go about this?

sherzaad:
you can use "progmem" for that.

PROGMEM - Arduino Reference