Why do I receive a Microsoft Visual C++ runtime library error when I create a large matrix in MATLAB 6.5 (R13)?

Why do I receive a Microsoft Visual C++ runtime library error when I create a large matrix in MATLAB 6.5 (R13)?
When I use the following code to create a large matrix of zeros on my computer:
h = zeros(311,476800);
I receive the following Microsoft Visual C++ runtime library dialog box error:
Abnormal program termination
When I run this same code on another computer I got the following error in MATLAB 6.5 (R13):
??? Error using ==> zeros
Out of memory. Type HELP MEMORY for your options.

 Accepted Answer

This error appears when MATLAB is running out of memory. For general information regarding memory management in MATLAB, see our Technical Note 1106: Memory Management Guide.
There are currently no known workarounds.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!