声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2165|回复: 1

matlab中矩阵可存储的数据量

[复制链接]
发表于 2006-4-11 17:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
<P>请问matalb中的矩阵最大可存储多少个数据?</P>
<P>如果超出这个范围,应该怎么办?</P>
<P>  最近在做一个模拟凝固的课题,我将我的模拟区域分割成200×200的矩阵来存储,对每个元素根据实际情况赋予了不同的数据,然后在matlab中,用不同的颜色标识出来,但是matlab提示矩阵越界,现在应该如何处理?<BR>如果超出这个范围,应该怎么办?</P>
回复
分享到:

使用道具 举报

发表于 2006-4-11 21:13 | 显示全部楼层

回复:(WJccn)matlab中矩阵可存储的数据量

<H2>Section 34: Product of Dimensions Is Greater Than Maximum Integer</H2><SAMP>Product of dimensions is greater than maximum integer.</SAMP>
<br><STRONG>Explanation:</STRONG><BR>You are attempting to create a full matrix with more elements than the maximum number of elements allowed in MATLAB.
<p><STRONG>Common causes:</STRONG><BR>MATLAB will attempt to create a matrix with a large number of elements, as long as that number of elements is less than the maximum number of elements allowed in a matrix. You can determine this maximum using the <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/computer.html" target="_blank" ><KBD>COMPUTER</KBD></A> function.
<p><STRONG>Solution:</STRONG><BR>If the matrix you are attempting to create has relatively few nonzero elements, you may be able to create it as a sparse matrix. You can use the <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/sparse.html" target="_blank" ><KBD>SPARSE</KBD></A> function and the other sparse matrix manipulation functions to create and manage this matrix. Type
<P><PRE>help sparfun</PRE>for a list of the sparse matrix manipulation functions. Note, however, that the limitation on the maximum number of elements still exists; now it only applies to the nonzero elements of the sparse matrix. If your matrix is not sparse, however, you will need to break it into sections with a number of elements less than the maximum returned by the <KBD>COMPUTER</KBD> function.
<p><STRONG>Example demonstrating this error:</STRONG><BR><KBD>ProductDimensionsTooLarge.m <BR><BR>这是mathworks上的一个说明,自己看吧</KBD>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-20 19:31 , Processed in 0.053411 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表