MATLAB 网格的最大数据集大小?
我使用 MATLAB 网格图将波形绘制为时间和空间的函数。空间步数为101。时间步数原来为2^14。除了窗口边缘信号的一些环绕之外,我得到了一个很好的图。所以我将时间步数加倍到 2^15。当我这样做时,绘图会返回垃圾。
MATLAB 中的网格图是否有最大数据集大小?与MATLAB版本有关吗?或者它依赖于机器?
I am plotting a waveform as a function of time and space using a MATLAB mesh plot. The number of space steps is 101. The number of time steps is originally 2^14. I get a good plot except for some wraparound of the signal at the window edges. So I doubled my number of time steps to 2^15. When I do this the plots return garbage.
Is there a maximum data set size for mesh plots in MATLAB? Is it depend on the version of MATLAB? Or is it machine dependent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,只要您的计算机有足够的内存并且在 32 位或 64 位寻址限制内,Matlab 就会很乐意创建大型矩阵。请参阅http://www.mathworks.com/support/tech-notes/ 1100/1110.html
如果您达到内存上限,您将收到内存不足错误。
2^15*101 ~ 3,200,000 个元素的矩阵(双精度)=> ~25 Mb 内存
您的代码一定在某个地方有错误。
Generally Matlab will happily create large matrices as long as your computer has enough memory and it is within the 32-bit or 64-bit addressing limits. See http://www.mathworks.com/support/tech-notes/1100/1110.html
If you were hitting the memory cap you would get an out of memory error.
matrix of 2^15*101 ~ 3,200,000 elements (doubles) => ~25 Mb of memory
Your code must have a bug somewhere.