Base class used to define file adapter for reading custom file formats
Simulink.data.adapters.BaseMatlabFileAdapter class is the base class
for custom file adapters that the
loadVariablesFromExternalSource function uses to load variables from an external
source file into a
Simulink.SimulationInput object. Subclass the
Simulink.data.adapters.BaseMatlabFileAdapter class to specify how to load
data from your custom external data source.
For an example of how to write, test, and register a custom file adapter, see Create External File Adapter for Loading Variables into Simulink.SimulationInput Object.
For an example of how to use a custom file adapter, see
Simulink.data.adapters.BaseMatlabFileAdapter class is a
For information on class attributes, see Class Attributes.
section — Section of external file
adapter name (default) | character array | string
Section of the external file, specified as a character array.
source — External source file
'' (default) | character array
External source file, specified as a character array.
|Code that executes when connection to external file is closed|
|Return display name for file adapter|
|Return marker for identifying last change to external file|
|Read external file data into data source workspace|
|Return logical sections for external file|
|Return supported file extensions for file adapter|
|Validates external file|
|Code that executes when connection to external file is opened|
|Check if external file has read attributes|
Introduced in R2022b