Create large array of zeros without MATLAB:arr​ay:SizeLim​itExceeded (perhaps on disc)

1 Ansicht (letzte 30 Tage)
I want to create a rather large array of zeros, but run into a `MATLAB:array:SizeLimitExceeded` error as the generated array is too large.
zeros([2, 1350, 21, 2, 1350, 21]);
Is there some way to create the array directly to disc and then write to it there?
(After I am writing to the array, I will reshape and convert it to a sparse matrix.)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Sep. 2022
Bearbeitet: Walter Roberson am 22 Nov. 2022

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by