Main Content

Simulink.ModelReference.ProtectedModel.clearPasswordsForModel

Clear cached passwords for a protected model

Description

example

Simulink.ModelReference.ProtectedModel.clearPasswordsForModel(model) clears protected model passwords for model that have been cached during the current MATLAB® session. If this function is not called, cached passwords are cleared at the end of a MATLAB session.

Examples

collapse all

After using a protected model, clear passwords cached for the model during the MATLAB session.

Simulink.ModelReference.ProtectedModel.clearPasswordsForModel(model)

Input Arguments

collapse all

Model name specified as a string or character vector

Example: rtwdemo_counter

Data Types: char

Introduced in R2014b