简体   繁体   English

MATLAB可以处理多少数据?

[英]How much data can MATLAB handle?

I have to do lots of computing with a matrix of 200,000 (or more) rows and 100 or 200 columns. 我必须使用200,000 (或更多)行和100200列的矩阵进行大量计算。

  • What is the memory threshold of MATLAB? MATLAB的内存阈值是多少?
  • Can MATLAB handle a giant matrix? MATLAB可以处理一个巨型矩阵吗?

The problem is, it depends on what version of matlab you have. 问题是,这取决于您拥有的Matlab版本。 It depends on how much memory you have. 这取决于您有多少内存。 It depends on the largest piece of contiguous memory available to you. 这取决于您可用的最大连续内存。 So any answer will potentially be vague, since we don't know what you have! 因此,任何答案都可能含糊不清,因为我们不知道您拥有什么!

How many elements are there? 有多少个元素? This is done by the simple artifice of multiplication. 这是通过乘法的简单技巧来完成的。 2e5*200 = 4e7 elements. 2e5 * 200 = 4e7个元素。 So 40,000,000 elements. 因此有40,000,000个元素。

How much storage does this consume? 这会消耗多少存储空间? Assuming these are doubles, each elements requires 8 bytes of memory. 假设这些都是双精度型,则每个元素需要8个字节的内存。 4e7*8 = 3.2e8 bytes of memory, or roughly 0.32 gigabytes of RAM. 4e7 * 8 = 3.2e8字节的内存,或大约0.32 GB的RAM。 Do you have this much memory available? 您有足够的可用内存吗? That I cannot say. 我不能说。 If you are running a 32 bit version of MATLAB on Windoze, it might just barely fit. 如果您在Windoze上运行32位版本的MATLAB,则可能几乎不合适。 The possession of 8 gigs of RAM is irrelevant if you cannot address it all, or if your OS won't let you see it all. 如果您无法解决所有问题,或者如果您的操作系统不允许您查看全部内容,那么拥有8个RAM无关紧要。

If you are running 64 bit MATLAB on a system with 8 gigs of RAM, you will have no problems in storing this array. 如果您在具有8 GB RAM的系统上运行64位MATLAB,则在存储该数组时将没有问题。

You can see the memory available one SOME systems using the memory function in MATLAB. 使用MATLAB中的内存功能,您可以看到一个SOME系统可用的内存。

Oh, yes. 哦是的 back in the days of college when x386 computers came out we were amazed that it took matlab 0.5seconds to invert a 1000x1000 random matrix. 早在大学时代,x386计算机问世时,令我们惊讶的是,matlab用0.5秒的时间来反转1000x1000随机矩阵。 Nowadays the limits have to do with how much contiguous memory is available at any time. 如今,限制与随时可使用的连续内存量有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM