matlab.io.Datastore.progress - Determine how much data has been read - MATLAB (original) (raw)
Main Content
Class: matlab.io.Datastore
Namespace: matlab.io
Determine how much data has been read
Description
[p](#d126e354124) = progress([ds](#d126e354090))
returns the percentage of the data that you have read from the matlab.io.Datastore object specified by ds
. Thep
output is a number between 0
and1
. A return value of 0.55
means you have read 55% of the data.
Input Arguments
ds
— Input datastore
matlab.io.Datastore
object
Input datastore, specified as a matlab.io.Datastore
object. To create a Datastore
object, see matlab.io.Datastore.
Output Arguments
p
— Percentage of data
scalar double
Percentage of data that you have read from the datastore, returned as a scalar double.
Data Types: double
Attributes
Abstract | true |
---|---|
Access | public |
Hidden | false |
Sealed | false |
Static | false |
To learn about attributes of methods, seeMethod Attributes.
Tips
- You must implement the
progress
method by deriving a subclass from the matlab.io.Datastore class. For more information, see Develop Custom Datastore.
Version History
Introduced in R2017b