Main Content

close

Class: Simulink.data.adapters.BaseMatlabFileAdapter
Namespace: Simulink.data.adapters

Code that executes when connection to external file is closed

Since R2022b

Syntax

close(adapterObj)

Description

close(adapterObj) executes when the connection to an external source file is closed.

Custom file adapters must define behavior for the getAdapterName, getSupportedExtensions, and getData methods. In addition, you can choose to override the isSourceValid, supportsReading, getSectionNames, getCurrentChecksum, open, and close methods.

Input Arguments

expand all

Custom file adapter, specified as an object of a class that derives from the Simulink.data.adapters.BaseMatlabFileAdapter base class.

Example: myCustomFileAdapter

Version History

Introduced in R2022b