Main Content

io.reader.getRegisteredWorkspaceReaders

Class: io.reader
Package: io

Return all custom workspace readers registered for the Simulation Data Inspector

Syntax

readers = io.reader.getRegisteredWorkspaceReaders

Description

readers = io.reader.getRegisteredWorkspaceReaders returns an array of strings that indicate all custom workspace readers registered for the Simulation Data Inspector.

Output Arguments

expand all

Custom workspace readers registered for the Simulation Data Inspector, returned as an array of strings.

Attributes

Statictrue

To learn about attributes of methods, see Method Attributes.

Examples

expand all

This example shows how to register a custom workspace data reader with the Simulation Data Inspector, verify registration was successful, and unregister the workspace reader.

This example registers a custom workspace data reader called SimpleStructReader. For an example that shows how to author the custom workspace reader, see Import Workspace Variables Using a Custom Data Reader.

registerWorkspaceReader(SimpleStructReader);

To verify registration of a custom workspace reader, use the io.reader.getRegisteredWorkspaceReaders method, which returns a string array that contains the names of all registered custom workspace readers.

io.reader.getRegisteredWorkspaceReaders
ans = 
"SimpleStructReader"

To unregister a custom workspace reader, use the unregisterWorkspaceReader method. All readers are unregistered when you close the MATLAB™ session.

unregisterWorkspaceReader(SimpleStructReader);
Introduced in R2020b