Main Content

close

Close AUTOSAR architecture model

Description

example

close(archModel) closes architecture model archModel. The archModel argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel. The model must be open or loaded with no unsaved changes.

close(archModel,'Force') closes the model without saving any unsaved changes.

Examples

collapse all

Create an AUTOSAR architecture model, add a composition, save the change, and close the model.

% Create AUTOSAR architecture model
modelName = 'myArchModel';
archModel = autosar.arch.createModel(modelName);

% Add a composition
composition = addComposition(archModel,'Sensors2');

% Save the model
save(archModel);

% Close the model
close(archModel);

Input Arguments

collapse all

AUTOSAR architecture model to close. The argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel. The model must be open or loaded with no unsaved changes.

Example: archModel

Introduced in R2020a