pre-allocate

13 次查看(过去 30 天)
huda nawaf
huda nawaf 2011-10-22
hi, when I used x=zeros(211197)
I got product of dimension is greater than maximum integer. what I do? I used pre-allocate to avoid out of memory
thanks
  1 个评论
Jan
Jan 2011-10-22
This has been answered in your former thread already: http://www.mathworks.com/matlabcentral/answers/17923-out-memory-problem
Please read the former answers carefully instead of trying to push me by email.

请先登录,再进行评论。

回答(1 个)

bym
bym 2011-10-22
you are creating a matrix [211197 x 211197]. do you want perhaps:
x= zeros(211197,1) % ?!

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by