Large files won't load.

5 次查看(过去 30 天)
Gilbert Bates
Gilbert Bates 2020-10-28
Can you tell me what's wrong with this file?
  2 个评论
madhan ravi
madhan ravi 2020-10-28
No files are attached.
Gilbert Bates
Gilbert Bates 2020-10-29
编辑:Walter Roberson 2020-10-30
Unfortunatley the compressed/zip file is still too large to attach.
Anyways, if I suspect running out of memory issues then I found that I can break up the large file by way of 'datastore' so I was going to try that. But I'm stuck and confused by this type name value pair thing with the following error.
Specify the 'Type' name-value pair argument to indicate the type of datastore to create.
ds = datastore('E:\Rise_Times\7436.mat','mat','tall');
tt = tall(ds);
The following doesn't work, how to correct? I know the file location as indicated, but not sure what I need for 'type' it's a matlab file.
ds = datastore('E:\Rise_Times\1000 Hz_10 percent_110 A_start.mat','mat','tall');
tt = tall(ds); %<- Not sure if I need this?
Thank you!

请先登录,再进行评论。

回答(1 个)

drummer
drummer 2020-10-30
编辑:drummer 2020-10-30
"But I'm stuck and confused by this type name value pair thing with the following error.
Specify the 'Type' name-value pair argument to indicate the type of datastore to create."
ds = datastore('E:\Rise_Times\7436.mat','mat','tall');
The name-value pair argument is a feature of MATLAB so you can inform to the native functions what value you assigning to whatever argument name you want to modify.
In your ds, you should specify the name of the argument, as you correctly specified the values.
ds = datastore('yourPath/blah.mat', 'FileExtensions', '.mat', 'Type', 'tall')
When you type ds in the command window, you will see your variable ds with the attributes of FileExtensions and Type you assigned.
Cheers
  6 个评论
Gilbert Bates
Gilbert Bates 2020-10-30
Thank you drummer!
I did try the variation you suggested, among many variations, with all resulting in some other error. But I think you are correct with datastore accepting .mat and following a few links, I think it is the filedatastore command that I need to use and that's where .mat is being mentioned. However, it looks like I need to write a custome read function as part of the commend. I'm looking through it now...
Walter Roberson
Walter Roberson 2020-10-30
'fileextensions' might be from a release newer than you are using. I think it was added in R2019b.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Large Files and Big Data 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by