Large files won't load.
古いコメントを表示
Can you tell me what's wrong with this file?
2 件のコメント
madhan ravi
2020 年 10 月 28 日
No files are attached.
Gilbert Bates
2020 年 10 月 29 日
編集済み: Walter Roberson
2020 年 10 月 30 日
回答 (1 件)
"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
2020 年 10 月 30 日
drummer
2020 年 10 月 30 日
you forgot to mention the function
ds = datastore( ... )
If you want to read your .mat file, you should
ds = load('youFile.mat')
Gilbert Bates
2020 年 10 月 30 日
drummer
2020 年 10 月 30 日
perhaps if you try
ds = datastore('yourFile.mat', 'Type', 'tall'); % already, without 'FileExtensions'
Gilbert Bates
2020 年 10 月 30 日
Walter Roberson
2020 年 10 月 30 日
'fileextensions' might be from a release newer than you are using. I think it was added in R2019b.
カテゴリ
ヘルプ センター および File Exchange で Datastore についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!