qc_is_target_type qc_is_model_file navigation bar

Table of Contents

qc_is_model

Returns true if the argument is a Simulink model. Otherwise returns false.

Syntax

is_model = qc_is_model(model)
    

Description

Returns true if the argument is a valid Simulink model. The model must be open or on the Matlab path. Otherwise it returns false.

Parameters

model

A string indicating the name of the model or a model handle. For example, 'q_a_lpbk'.

Outputs

is_model

True if the given argument identifies a valid Simulink model. Otherwise false.

Examples

is_model = qc_is_model('q_a_lpbk'); % Returns true if q_a_lpbk is a Simulink model.
    

See Also

 

navigation bar