Main Content

load

Class: Simulink.CodeImporter
Namespace: Simulink

Load import settings from saved import settings file

Since R2020a

Syntax

success = load(obj, filename)

Description

success = load(obj, filename), where obj is an object of class Simulink.CodeImporter, loads import settings from a saved import settings JSON file, filename, created using the save method.

Input Arguments

expand all

Simulink® Code Importer object, specified as a handle to a Simulink.CodeImporter object.

Name or path of JSON file with saved import settings, specified as a character vector or string scalar.

Example: 'importsettings.json'

Data Types: char | string

Output Arguments

expand all

Indicator of whether loading import settings is successful, returned as a logical scalar.

Version History

Introduced in R2020a