R = randn(960,d); creates a matrix of random numbers.
我有尺寸1000000 by 960
的另一个矩阵X
期间内存不足错误。当我做了手术Matlab的:乘法运算
B = (X*R >=0) ;
我得到的错误
Error using *
Out of memory. Type HELP MEMORY for your options.
为d = 4096
。但是,d < 4096
尤其没有错误。 d = [32 64 128 256 512 1024 2048 ]
没有问题,除了d>4096
的情况。 X具有单精度格式的数据元素。
打字memory
给
Maximum possible array: 15663 MB (1.642e+010 bytes) *
Memory available for all arrays: 15663 MB (1.642e+010 bytes) *
Memory used by MATLAB: 4706 MB (4.935e+009 bytes)
Physical Memory (RAM): 8151 MB (8.547e+009 bytes)
* Limited by System Memory (physical + swap file) available.
我不知道我怎么能解决这个问题。我在运行8位内存和i7处理器的Windows 64位操作系统上运行Matlab 64位2011b版本。请帮忙!
通过在命令窗口中输入“全部清除”来清除工作空间,然后重新输入“内存”。输出是什么? – Alessiox
只要做数学!如果大小为1000000 * 4096,则需要31250 MB来存储乘法结果。 – Daniel