Sounds like an out of memory either on the excel side or in the amount of data which is allowed to be transfered through COM. How big is the excel file you try to read? What is the range you want to read(so A1 to??)?
Matlab supposed to plot a map for two stations during five months (5 months per each station). Each day contain an excel file is about 5.85MB, A1-AB1 and each column is about 13354.
Sorry, if my explanation wasn't clear enough. It means I have to change all of the excel like the code you sent? If yes, I should have said the each excel file is different in terms of size and row but the column are equal(all have 28 column).
@Jan: It seems Matlab could not able to read the other excels anymore. This is that you want me to post??
Warning: Could not start Excel server for export.
XLSWRITE will attempt to write file in CSV format.
> In xlswrite at 166
??? Undefined function or variable "ExcelWorkbook".
@Ara, I think Friedrich just wants you to try those two lines of code. That code will create an Excel file which is the same size as yours, and then try to read it back again. He wants to see if that works.
Thanks to explain me. I tried and those lines gave me an empty excel file but still Matlab can not run to read the rest of the operations and again give me the above error.
@Ara: No, I asked for the line of code you use to call XLSWRITE. But the posted error message is revealing, that there is a problem with the Excel server. Which Excel version do you have installed?
@Jan: I did not call XLSWRITE in my code and I think this is the main problem that Matlab shows "not enough storage". I guess I have to write a new function and then call the other process, right? Btw, the Excel 2010 I am using.
@ Friedrich: It's ok to process all the data for 4 months but when exactly it start to read files from the fifth month then the error display.
I am facing a similar problem when I run a Simulink model in Acceleration mode. However, the problem does not surface when I use the Normal mode. I am using MATLAB 2018a. Is there any fix for this?
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
9 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142567
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142567
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142568
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142568
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142572
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142572
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142575
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142575
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142578
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142578
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142580
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142580
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142581
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142581
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142596
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142596
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142616
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/71591-how-to-fix-this-error-not-enough-storage-is-available-to-complete-this-operation#comment_142616
Sign in to comment.