Memory is limited in Matlab only by the amount of memory (including virtual memory) made available to it by the operating system. Matrices are stored in memory as contiguous space, so if you have a matrix that would occupy 8GB of memory, you would need one big chunk of 8GB to be available to you in memory.
You can use the memory command to provide detailed statistics about the memory available to you, including the amount of contiguous memory available for a single matrix. For example:
> memory
Maximum possible array: 677 MB (7.101e+008 bytes) *
Memory available for all arrays: 1601 MB (1.679e+009 bytes) **
Memory used by MATLAB: 446 MB (4.681e+008 bytes)
Physical Memory (RAM): 3327 MB (3.489e+009 bytes)
* Limited by contiguous virtual address space available.
** Limited by virtual address space available.
To calculate the array size that the Maximum possible array value corresp

MATLAB中的矩阵大小受限于操作系统分配给它的内存(包括虚拟内存)。使用'memory'命令可以查看详细的内存统计信息,包括单个矩阵可用的连续内存。最大可能数组受到连续虚拟地址空间的限制,实际创建的数组元素数量总是少于理论最大值。避免内存错误的详细指导可在Mathworks文档中找到。
最低0.47元/天 解锁文章

1162

被折叠的 条评论
为什么被折叠?



