Page 1 of 1

VariableNames and TextscanFormats must be specified during construction

Posted: Thu Feb 09, 2017 2:22 pm
by matlab1
VariableNames and TextscanFormats must be specified during construction

Re: VariableNames and TextscanFormats must be specified during construction

Posted: Tue Jan 19, 2021 8:40 pm
by matlab1
Solution:



TabularTextDatastore properties describe the files associated with a TabularTextDatastore object. Specifically, the properties describe the format of the data in the files and control how the data should be read from the datastore. When you create a TabularTextDatastore object, the datastore function uses the first file in the Files property to determine the values of the properties. With the exception of the Files property, you can specify the value of TabularTextDatastore properties using name-value pair arguments when you create the datastore object. To view or modify a property after creating the object, use the dot notation:

ds = tabularTextDatastore('airlinesmall.csv');
ds.TreatAsMissing = 'NA';
ds.MissingValue = 0;



For more information,

https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.tabulartextdatastore.html