How can I load large files (~150MB) in MATLAB?

后端 未结 3 655
再見小時候
再見小時候 2020-12-09 06:14

I have a large MATLAB file (150MB) in matrix form (i.e. 4070x4070). I need to work on this file in MATLAB but I can\'t seem to load this file. I am getting an \"out of mem

3条回答
  •  情歌与酒
    2020-12-09 06:40

    You can also user MATLAB's Memory-Mapping of Data Files to read in a block of the file, process it, and proceed to the next block without having to load the entire file into memory at once.

    For instance, see this example, which "maps a file of 100 double-precision floating-point numbers to memory."

提交回复
热议问题