qc_is_model qc_is_model_open navigation bar

Table of Contents

qc_is_model_file

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

Syntax

is_model = qc_is_model_file(model)
    

Description

Returns true if the argument is a Simulink model file on the Matlab path. Otherwise it returns false. The function is capable of discerning a model file from a library file. It does not load the model into memory.

Parameters

model

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

Outputs

is_model

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

Examples

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

See Also

 

navigation bar