필터 지우기
필터 지우기

Memory issues in using xlsread and dataset('XLSFile'...)

조회 수: 1 (최근 30일)
Ms. Mat
Ms. Mat 2011년 3월 6일
답변: Nick Haddad 2014년 10월 3일
I have a huge file in XLSX format. While xlsread runs without memory issues, the command A = dataset(XLSFile, filename) throws the error "Error: Not enough storage is available to complete". Why would this happen ? Any broad guidelines to keep in mind while handling large data will be very helpful.
Thank You
  댓글 수: 1
Peter Perkins
Peter Perkins 2011년 3월 8일
Vandhana, it would help to know more specifically what your data are, and the error trace that gets spit out to the command window, if there is one.

댓글을 달려면 로그인하십시오.

답변 (3개)

Walter Roberson
Walter Roberson 2011년 3월 6일
I speculate that dataset() reads the data and then converts it in to a different organization, requiring intermediate storage equivalent to the size of the data.
I do not know this to be true, as I do not have that toolbox, but from a code point of view it is more economical to only write the xlsx reading code once and convert the output, rather than writing code to read xlsx for every routine that is going to convert the data, just to prevent potential problems with intermediate storage being exceeded.

Matt Tearle
Matt Tearle 2011년 3월 7일
Do you have a simple way to write the file out in a different format (eg text, such as CSV)? What are the columns of your file? (ie how many and what type)
If you can work with text, you might be able to batch process and/or use non-double types to reduce the memory requirements.

Nick Haddad
Nick Haddad 2014년 10월 3일
This issue is a known bug in MATLAB and has been addressed in the following bug report:
The bug report has a workaround which you can install for MATLAB R2013a through R2014b.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by