3.8

3.8 | 21 ratings Rate this file 229 downloads (last 30 days) File Size: 1.24 MB File ID: #9060

Handling Large Data Sets Efficiently in MATLAB

by Stuart McGarrity

 

16 Nov 2005 (Updated 04 Aug 2009)

Code covered by BSD License  

Handling Large Data Sets Efficiently in MATLAB®

Editor's Notes:

This file was a File Exchange Pick of the Week

Download Now | Watch this File

File Information
Description

Example code from "Handling Large Data Sets Efficiently in MATLAB " webinar ( http://www.mathworks.com/wbnr11289) describing strategies for handling large amounts of data in MATLAB and avoiding "out-of-memory" errors. It will provide you with an understanding of the causes of memory limitations in MATLAB and a set of techniques to increase the available memory in MATLAB. It will also show techniques for minimizing memory usage in MATLAB while accessing, storing, processing, and plotting data.

This information is also available (and updated) in technical note 1107:
http://www.mathworks.com/support/tech-notes/1100/1107.html

Specific topics include:
* Understanding the maximum size of an array and the workspace in MATLAB
* Using undocumented features to show you the available memory in MATLAB
* Setting the 3GB switch under Windows XP to get 1GB more memory for MATLAB
* Using textscan to read large text files and memory mapping feature to read large binary files

Acknowledgements
This submission has inspired the following:
A Powerful Sidekick: Using MySQL for High-Volume Data Manipulation in Matlab
MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements Most techniques for available memory maxmimization (first part of presentation) are for Windows XP. Many examples need at least 1G RAM.
Zip File Content  
HTML Files Setting the 3GB Switch Under Windows XP
Other Files
Demos/create_waferdata.m,
Demos/exercise5.m,
Demos/exercise6.m,
Demos/exercise6a.m,
Demos/exercise7.m,
Demos/exercise7a.m,
Demos/exercise8a.m,
Demos/exercise8b.m,
Demos/exercise9.m,
Demos/loaddata.m,
Demos/memmap/makevarray.m,
Demos/memmap/memmapexample.m,
Demos/memmap/readbigbin.m,
Demos/memmap/test_makevarray.m,
Demos/memmap/test_virtualvarray.m,
Demos/memmap/waferdata.mat,
Demos/memmap/writebigbin.m,
Demos/myzerosuint8.c,
Demos/myzerosuint8.mexw32,
Demos/ramsize.m,
Demos/waferdata.mat,
Demos/waferdata_start.csv,
license.txt,
Readme.pdf,
Utilities/Set3gbswitch.swf
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (21)
18 Nov 2005 John D'Errico

A superb review of memory management for those really
big problems. He explains what the limits are, why those
limits exist, and what to do if its possible to do anything.
Its well worth your time to read.

23 Dec 2005 FIKAYO ADERINLEWO  
02 Feb 2006 Jérôme Briot

I agree with John comments.

Note that the "/3gb" method only works with the Service Pack 2 of Window$ XP (SP2).

A patch is available for the SP1 and the problem seems to be fixed with the SP2 .

See there :

http://support.microsoft.com/default.aspx?scid=kb;en-us;328269

Jérôme

28 Feb 2006 Gurk Peter

Gives some information on how to resolve out of memory errors, but all the tips are more or less straightforward for anyone knowing basic things about computers and operating systems.

22 Apr 2006 hamed mehdizadeh  
05 Jun 2006 Parul Gupta

I found this webinar tremendously useful - there were lots of tips and tricks I didn't know that can help better memory management

10 Oct 2006 Lorena patiño  
05 Nov 2006 me again

setting the 3GB switch too stupid slow/big download/view

09 Mar 2007 syaidin dien  
13 Jun 2007 Roland May  
12 Jul 2007 anu puri  
23 Aug 2007 mohamed el_amawy  
26 Sep 2007 Kurt Sanger

Video for setting 3GB Switch does not play. What do I do now?

27 Feb 2008 Chinara Griffith

The information here is timely and accurate. I learnt a lot from this presentation.

03 Mar 2008 Gideon Alon

Very good and useful information.

24 Mar 2008 Lizhu Qi

Very helpful. I really appreciate your work.

02 Jun 2008 Lin Dong

great

22 Jul 2009 Steen Johansen

Very interesting. This should be a part of the standard documentation.
I only wish I had found this when it was posted.

07 Aug 2009 Danila  
29 Sep 2009 Chamane

Helpfull and really interesting

25 Nov 2009 Danila  
Please login to add a comment or rating.
Updates
06 Sep 2007

Add link to technical note

17 Jul 2009

Removed Slides

21 Jul 2009

Removed PPT slides.

22 Jul 2009

Error in description.

04 Aug 2009

Copyright work.

Tag Activity for this File
Tag Applied By Date/Time
large Cristina McIntire 10 Dec 2008 16:58:32
ram Cristina McIntire 10 Dec 2008 16:58:32
data memory Cristina McIntire 10 Dec 2008 16:58:52
3gb Cristina McIntire 10 Dec 2008 16:58:52
memory Gautam Vallabha 13 Apr 2009 10:28:18
optimization Gautam Vallabha 13 Apr 2009 10:28:18
efficiency Gautam Vallabha 13 Apr 2009 10:28:18
large data Stuart McGarrity 21 Jul 2009 16:51:55
lareg data Stuart McGarrity 21 Jul 2009 16:52:50
memory Kimi 15 Oct 2009 02:18:57
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com