A double-precision numeric array of size 4,000,000 x 4,000,000 would require over 122 MILLION megabytes of storage. (Over 116 terabytes.) That's not feasible.
You will need to find some other way.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!