Is there any limitation for capacity of cell arrays?

Is there any limitation for capacity of cell arrays that this capacity depends on numbers of characters ?

3 Comments

What do you mean? You ask the maximum number of characters a cell can hold?
I don't think there is such a limit. Of course, there is a limit of your computer memory.

Sign in to comment.

 Accepted Answer

I don't think cell arrays have any specific memory limitations, beyond the usual restrictions that would happen due to system memory, etc. You can read more details here: http://www.mathworks.com/help/techdoc/matlab_prog/brh72ex-2.html

16 Comments

thanks for replying
i have a problem about this that i have described here:
http://www.mathworks.com/matlabcentral/answers/16079-in-command-window-while-displaying-a-cell-instead-of-showing-arrays-shows-how-many-characters-the
That isn't a capacity issue; that is a matter of how they display.
let me check
cell size is 250*250
and each array have 100 character
i think this checking takes 4 hours in my project
@mohammad, so what is your real question? The answer to your title question is NO.
thanks Fangjun
in my project with matlab, a cell is created that is 250*250 and each array has more than 100 character.
when i run this project, after creating of just 50*50 of cell, matlab errors. but now i think this error is not because of memory of cell,even it could be because of 'numbers of lines in command window scroll buffer' because while running the project so much thing displays in command window and cause filling command window scroll buffer.
but i am not sure. let me check without displaying anything in command window (this take 4 hours)
You should have posted the error message with a minimum working example: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
When your program is running, having cell displayed in the Command Window will slow it down but not cause an error. I never heard any "command window scroll buffer". The display will simply keep rolling.
@Fangjun "command window scroll buffer" is here :file>>Preferences>>command window
default is 5000 line
i saw this today and i never was seen this too
@Oleg thanks for helping.in this case this error in not real and because of that I didn't say it. As I told I think scroll buffer causes this problem. I am going to check this then I will write result here
after solving scroll buffer problem, now error is:
??? Error: Not enough storage is available to complete this operation.
Error in ==> xlsread at 316
rawData = DataRange.Value;
That buffer is called "Number of lines in command window scroll buffer". The error is apparently related to xlsread(). What is the size of your Excel file? How many cells are you trying to read at once? It's also related to your MATLAB version, MS Office Version and your OS. Please specify if you want to more accurate help.
thanks Fangjun
there are 600 .xls file that each one has 20,000 rows and 2 columns. MATLAB automatically reads these and does some analyzing and then saves some results. It reads 360 of 600 and after that it gives above error.
MATLAB version:7.11 (2010b)
MS Office Version:excel 2007 (12.0.6545)
OS: WIN XP Version 5.1.2600 Service Pack 3 Build 2600
Processor:x86 Family 6 Model 23 Stepping 6 GenuineIntel ~2499 Mhz
Total Physical Memory:2,048.00 MB
@Mohammad: Installing more memory and running a 64-bit version of Matlab on a 64-bit OS will help to avoid the error.
thanks
Total Physical Memory:2,048.00 MB
and i think:
64-bit version is for more than 4 mb. if not please tell me to go to instal them.
@Mohammad: Correct. With less than 4GB (actually only 3 or 3.5 depending on the hardware) a 64 bit system will not help. But RAM is cheap and installing > 4GB is the best and simplest solution, if you urgently want to operate on large data. If you do not want to expand the RAM, work with smaller data sets.
thanks you are right it needs more RAM

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!