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

3 次查看(过去 30 天)
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.)

采纳的回答

Walter Roberson
Walter Roberson 2022-9-14
编辑:Walter Roberson 2022-11-22

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by